1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-24 15:50:25 +01:00
imgui/examples/sdl_opengl_example
2015-08-09 17:24:10 +02:00
..
imgui_impl_sdl.cpp Minor Windows adjustments 2015-08-09 17:24:10 +02:00
imgui_impl_sdl.h SDL example: tweaks (#233 #226) 2015-07-08 11:42:43 -06:00
main.cpp Carriage return (#289) 2015-08-01 17:18:01 -06:00
README.md Fixed documentation 2015-08-05 19:19:12 -06:00

How to Build

  • On Windows with Visual Studio's CLI

<sdl2path> 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