gruberchris / cmakeSetup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmakeSetup


This is a cmake setup that loads glfw, opengl, stb_image, stb_truetype and a custom 2d library. It works both on windows and linux.

How to use:

gameLayer.cpp has the game main loop. Add your files in scr/gamelayer and include/gamelayer. Look at the example provided to see how to acces user input.

Configurations:

  1. In Cmakelists.txt you can set the RESOURCES_PATH macro to the root folder for sharing the compiled program. By default it is the absolute path to the assets folder.
  2. In toold.s you cand change INTERNAL_BUILD to 0 when sharing the exe so the custom asserts don't let the user to continue debugging or using the program after a failed assertion.

About


Languages

Language:C++ 72.3%Language:C 15.9%Language:CMake 10.9%Language:GLSL 0.8%