/imgui_sdl_osx

OS X SDL2 hooking approach

Primary LanguageC++MIT LicenseMIT

imgui_sdl_osx

To render anything you need to call original SDL_GL_SwapWindow before you actually call SDL_GL_MakeCurrent (with original context as one of the arguments).

Moreover, you need to call glFlush() in the bottom of your SDL_GL_SwapWindow override function to get rid of flickering effect.

Usage

  1. Install SDL2 library with Homebrew.
brew install sdl2
  1. Open project in XCode.
  2. Build the project.
  3. Inject the lib. (for example with osxinj)

Credits:

Thanks to: