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
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 | 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 |