This is a template for OpenGL projects, forked from glamour which itself is a fork of Glitter with improvements. It has a basic C++ wrapper for some of OpenGL, and a basic app framework based on GLFW.
Unlike glamour, it's OpenGL 4.5 boilerplate.
For any suggestions, please submit an issue :)
Status: WIP
- Added Freetype2 for truetype font processing.
- Generated an OpenGL 4.5 function loader using the glad web service instead of the outdated c-branch on the original repo.
- All submodules have been pointed toward their latest stable release.
- Output goes to a
bin
directory at the project root. - A
resources
folder has been added that will be copied to thebin
folder along with the executable project output as a post build event. This is a good place to store shader source files, art assets, or any other files that will need to be loaded by your program. - The console window will now be hidden by default for Visual Studio projects.
- The startup project will now be the main executable project by default for Visual Studio projects.
C++14
is set withCMAKE_CXX_STANDARD
in theCMakeLists.txt
file. This can be changed to whichever standard your project requires.- Has an
.editorconfig
file. USE_FOLDERS
is now on by default in theCMakeLists.txt
so that CMake targets will be placed in their own folder.- A compilation database is automatically created when you build. This can be used for code completion by editor plugins.
- Removed Assimp, bullet and boxer libs, because currently I don't need them and don't find them to be of utter necessity for a basic boilerplate.
git clone --recursive https://github.com/Pritilender/Glittering-glamour/
cd glamour
mkdir build
cd build
# UNIX Makefile
cmake ..
# Mac OSX
cmake -G "Xcode" ..
# Microsoft Windows
cmake -G "Visual Studio 14" ..
cmake -G "Visual Studio 14 Win64" ..