/cgfx

C graphics programming template with SDL2 & OpenGL

Primary LanguageCMIT LicenseMIT

cgfx

C graphics programming template using SDL2 & OpenGL:
Compiles to Win64 MacOS Linux with compile_commands.json for clangd LSP support.

Linux & Darwin Run:

  • mkdir build
  • cd build
  • cmake ..
  • make
  • ./cgfx

Win64 Run:

  • from x64 Native Tools Command Prompt for VS 2019
  • Install & Integrate VCPKG
  • Install dependencies through VCPKG.
  • scripts\build.bat -b to build .sln & compile_commands.json. (check DCMAKE_TOOLCHAIN_FILE path)
  • scripts\build.bat -cr to compile & run exe.

Win64 Toolchain:

Dependencies:

Vendored: