C graphics programming template using SDL2 & OpenGL:
Compiles to Win64 MacOS Linux with compile_commands.json for clangd LSP support.
mkdir buildcd buildcmake ..make./cgfx
- requires ninja
- download
SDL2-devel-X.YY.Z-VC.zipfromhttps://github.com/libsdl-org/SDL/releases - unzip & add path to CMAKE_PREFIX_PATH environment variable
- run
x64 Native Tools Command Prompt for VS 20XX scripts\build.bat -bto makebuild.ninja&compile_commands.jsonscripts\build.bat -crto compile & run exe