imgui / examples / sdl_opengl_example /
@ocornut ocornut authored on 1 Aug 2015
..
README.md Fix SDL2-example for Linux 9 years ago
imgui_impl_sdl.cpp Use ImGuiIO::AddInputCharactersUTF8() in SDL2 example 9 years ago
imgui_impl_sdl.h SDL example: tweaks (#233 #226) 9 years ago
main.cpp Carriage return (#289) 9 years ago
README.md

How to Build

  • On Windows with Visual Studio's CLI

\ is your SDL2 folder.

cl /MD /I <sdl2path\include> /I ..\.. main.cpp imgui_impl_sdl.cpp ..\..\imgui.cpp /link /LIBPATH:<sdl2path\lib> SDL2.lib SDL2main.lib
  • On Linux and similar Unices
c++ `sdl2-config --cflags` -I ../.. main.cpp imgui_impl_sdl.cpp ../../imgui.cpp `sdl2-config --libs` -lGL -o sdl2example