Skip to content
/ cgfx Public template

C graphics programming template with SDL2 & OpenGL

License

Notifications You must be signed in to change notification settings

IbrahimHindawi/cgfx

Repository files navigation

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:

  • requires ninja
  • download SDL2-devel-X.YY.Z-VC.zip from https://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 make build.ninja & compile_commands.json
  • scripts\build.bat -cr to compile & run exe

Win64 Toolchain:

Dependencies:

Vendored:

About

C graphics programming template with SDL2 & OpenGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published