This has a pre-setup C/C++ template for working with openGL. GLAD is with OpenGL4.1 basic and should be enough for most academic work. Additionally, shaders can be loaded from the path (resources are copied over), so that linting and checking still works on the separate files.
Configured with the following dependencies (All done via git submodules):
- Glad - OpenGL 4.1
- GLFW - v3.3
- STB - Texture loading
- GLM - v0.9.9.8
Download it via cloning Important: Remember to initialize submodules or recurse while cloning
git clone [email protected]:chrisvrose/gludon.git --recurse-submodules
If you have already cloned it, and need to get the submodules/update dependencies
git submodule init
git submodule update
Folder/File | Description | Misc |
---|---|---|
src/ |
Write your stuff here | |
lib/ |
External dependencies | |
include/ |
Headers for src/ |
|
build/ |
Most IDEs will dump CMake data into this folder (Autogenerated) | |
shaders/ |
Shaders | |
gen/ |
Generated Raw string Shaders (Created by Cmake) | |
res/ |
Resources included in build folder | Hint: Use for textures |