From ccbc72e98b9954d7fa69528db39a3b1550b66dea Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Tue, 18 Aug 2015 10:16:16 +0300 Subject: [PATCH] add mac os x build instructions for sdl_opengl_example --- examples/sdl_opengl_example/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/sdl_opengl_example/README.md b/examples/sdl_opengl_example/README.md index bf2aeddf..d89ebb45 100644 --- a/examples/sdl_opengl_example/README.md +++ b/examples/sdl_opengl_example/README.md @@ -9,8 +9,15 @@ cl /MD /I /I ..\.. main.cpp imgui_impl_sdl.cpp ..\..\imgui*.cpp /link /LIBPATH: SDL2.lib SDL2main.lib ``` -- On Linux and similar Unices +- 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 +```