Skip to content

rodrigolitzius/OpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building/Running (Only tested on Linux)

dependencies:

If you got all dependencies installed, simply build like so:

git clone https://github.com/rodrigolitzius/OpenGL
cd OpenGL
make

Then to run:

./main

If you get a Cannot open shared object file make sure LD (The dynamic linker) is searching for libraries in the path CGLM is installed.

Run this to find where CGLM is installed:

find /usr/ 2>/dev/null | grep libcglm

Then run this to tell LD where to find CGLM

LD_LIBRARY_PATH=<the path cglm is installed>
  • Note that this will only set the variable for your current shell session

"Playing"

Cross-eye 3D

This project has a "fake 3D" mode that allows you to perceive depth from 2D images. If you want to know how see this effect i recommend this Youtube video. (It looks really cool, it's worth the try)

Key bindings

Key Action
WASD Forwards/backwards, left/right
E Move faster
Space/LShift Up/down
Right Click Grab/release cursor
Mouse Wheel Change FOV
C Enable wireframe mode
3 Enable cross-eye 3D mode

About

My progress at OpenGL. Made with C, GLFW and https://learnopengl.com/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages