C graphics programming template using SDL2 & OpenGL:
Compiles to Win64 MacOS Linux with compile_commands.json
for clangd LSP support.
mkdir build
cd build
cmake ..
make
./cgfx
- requires ninja
- download
SDL2-devel-X.YY.Z-VC.zip
fromhttps://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 -b
to makebuild.ninja
&compile_commands.json
scripts\build.bat -cr
to compile & run exe