ocornut a6399f120f IO: Added "Super" keyboard modifiers (corresponding to Cmd on Mac and Windows key in theory although the later is hard to read) (#473) 9 years ago
..
README.md 624adb1b23 Tweak build batch files and readmes 9 years ago
imgui_impl_sdl.cpp a6399f120f IO: Added "Super" keyboard modifiers (corresponding to Cmd on Mac and Windows key in theory although the later is hard to read) (#473) 9 years ago
imgui_impl_sdl.h fdc4299c6c Examples: SDL: Made ImGui_ImplSdlGL3_NewFrame() signature match GL2 one 9 years ago
main.cpp 7661b1e778 Trim trailing spaces 9 years ago

README.md

How to Build

  • On Windows with Visual Studio's CLI

    set SDL2DIR=path_to_your_sdl2_folder
    cl /Zi /MD /I %SDL2DIR%\include> /I ..\.. main.cpp imgui_impl_sdl.cpp ..\..\imgui*.cpp /link /LIBPATH:%SDL2DIR%\lib SDL2.lib SDL2main.lib
    
  • On Linux and similar Unixes

    c++ `sdl2-config --cflags` -I ../.. main.cpp imgui_impl_sdl.cpp ../../imgui*.cpp `sdl2-config --libs` -lGL -o sdl2example
    
  • On Mac OS X

    brew install sdl2
    c++ `sdl2-config --cflags` -I ../.. main.cpp imgui_impl_sdl.cpp ../../imgui*.cpp `sdl2-config --libs` -framework OpenGl -o sdl2example