/sdl2-cimgui-demo

Demo project SDL2 + cimgui + opengl3 using either gl3w or glew

Primary LanguageCMIT LicenseMIT

Build

This project has the following dependencies

  • cimgui as git submodule (in which it has imgui as dependencies as git submodule the same)

Before building, execute git submodule update --init to clone down all dependencies from git submodules.

You have 3 options

  • make or make all - to build both variant with gl3w and glew as loader
  • make gl3w
  • make glew

Then run newly built main-gl3w or main-glew depends on which make's target you've executed.

Note

  • With help of suggestion from #78, and #79.
  • Tested on macOS only, for Windows and Linux will need slight modification on Makefile file

More Info

My blog post accompnaying this project for more detail Integrate cimgui with SDL2 in C code.

what to expect

License

MIT, Wasin Thonkaew