https://github.com/ivan-hart/opengl-template
This project is intended as a template for personal use
https://github.com/ivan-hart/opengl-template
3d c cmake cpp graphics graphics-programming opengl
Last synced: 2 months ago
JSON representation
This project is intended as a template for personal use
- Host: GitHub
- URL: https://github.com/ivan-hart/opengl-template
- Owner: ivan-hart
- License: gpl-3.0
- Created: 2024-10-13T04:15:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-17T00:45:29.000Z (over 1 year ago)
- Last Synced: 2025-06-10T00:02:51.649Z (about 1 year ago)
- Topics: 3d, c, cmake, cpp, graphics, graphics-programming, opengl
- Language: C
- Homepage: https://ivan-hart.github.io/
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Simple Cube With Lighting Intended as a Template

### Dependencies
> [SDL2](https://github.com/libsdl-org/SDL)
> [GLM](https://github.com/g-truc/glm)
> [GLAD (Included)](https://github.com/Dav1dde/glad)
> [Cmake (Makefile Generator)](https://cmake.org/)
> [GNU Make](https://www.gnu.org/software/make/)
### To Run
> $ md build && cd build
> $ cmake ..
> $ make
> $ ./opengl-template
### Camera Controls
> W to raise the Y position of the camera
> S to lower the Y position of the camera
> A to rotate the camera to the left
> D to rotate the camera to the right
### Cube Controls
> Up Arrow to rotate the X rotation of the cube up
> Down Arrow to rotate the X rotation of the cube down
> Left Arrow to rotate the cube to the left
> Right Arrow to rotate the cube to the right