diff --git a/examples/sdl_opengl_example/README.md b/examples/sdl_opengl_example/README.md index de553f30..0afb0931 100644 --- a/examples/sdl_opengl_example/README.md +++ b/examples/sdl_opengl_example/README.md @@ -8,3 +8,9 @@ ``` cl /MD /I /I ..\.. main.cpp imgui_impl_sdl.cpp ..\..\imgui.cpp /link /LIBPATH: 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 +``` diff --git a/examples/sdl_opengl_example/imgui_impl_sdl.cpp b/examples/sdl_opengl_example/imgui_impl_sdl.cpp index 9bac0959..10260d2d 100644 --- a/examples/sdl_opengl_example/imgui_impl_sdl.cpp +++ b/examples/sdl_opengl_example/imgui_impl_sdl.cpp @@ -3,7 +3,7 @@ #include #include -#include +#include #include #include "imgui_impl_sdl.h" diff --git a/examples/sdl_opengl_example/main.cpp b/examples/sdl_opengl_example/main.cpp index e64d2265..e2d23667 100644 --- a/examples/sdl_opengl_example/main.cpp +++ b/examples/sdl_opengl_example/main.cpp @@ -4,9 +4,9 @@ #include "imgui_impl_sdl.h" #include #include -#include +#include -int SDL_main(int, char**) +int main(int, char**) { // Setup SDL if (SDL_Init(SDL_INIT_EVERYTHING) != 0)