Skip to content

OpenGL 4.6 boilerplate with thin C++ wrapper and basic app framework

Notifications You must be signed in to change notification settings

Pritilender/Glittering-glamour

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glittering glamour

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

Improvements

  • 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 the bin 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 with CMAKE_CXX_STANDARD in the CMakeLists.txt file. This can be changed to whichever standard your project requires.
  • Has an .editorconfig file.
  • USE_FOLDERS is now on by default in the CMakeLists.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.

Instructions

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

About

OpenGL 4.6 boilerplate with thin C++ wrapper and basic app framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 85.5%
  • CMake 12.2%
  • GLSL 2.3%