From 60cbbdec07ab7a5636eac5b3c024ae44e937f4d4 Mon Sep 17 00:00:00 2001
From: chai <chaifix@163.com>
Date: Mon, 13 Dec 2021 00:07:19 +0800
Subject: +init

---
 .../examples/example_sdl_sdlrenderer/README.md     | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Client/ThirdParty/imgui/examples/example_sdl_sdlrenderer/README.md

(limited to 'Client/ThirdParty/imgui/examples/example_sdl_sdlrenderer/README.md')

diff --git a/Client/ThirdParty/imgui/examples/example_sdl_sdlrenderer/README.md b/Client/ThirdParty/imgui/examples/example_sdl_sdlrenderer/README.md
new file mode 100644
index 0000000..209f15a
--- /dev/null
+++ b/Client/ThirdParty/imgui/examples/example_sdl_sdlrenderer/README.md
@@ -0,0 +1,25 @@
+
+# How to Build
+
+- On Windows with Visual Studio's CLI
+
+```
+set SDL2_DIR=path_to_your_sdl2_folder
+cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_sdlrenderer.cpp ..\..\imgui*.cpp /FeDebug/example_sdl_sdlrenderer.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x86 SDL2.lib SDL2main.lib /subsystem:console
+#          ^^ include paths                  ^^ source files                                                                                        ^^ output exe                        ^^ output dir  ^^ libraries
+# or for 64-bit:
+cl /Zi /MD /I.. /I..\.. /I%SDL2_DIR%\include main.cpp ..\..\backends\imgui_impl_sdl.cpp ..\..\backends\imgui_impl_sdlrenderer.cpp ..\..\imgui*.cpp /FeDebug/example_sdl_sdlrenderer.exe /FoDebug/ /link /libpath:%SDL2_DIR%\lib\x64 SDL2.lib SDL2main.lib /subsystem:console
+```
+
+- On Linux and similar Unixes
+
+```
+c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_sdlrenderer.cpp ../../imgui*.cpp `sdl2-config --libs` -lGL
+```
+
+- On Mac OS X
+
+```
+brew install sdl2
+c++ `sdl2-config --cflags` -I .. -I ../.. main.cpp ../../backends/imgui_impl_sdl.cpp ../../backends/imgui_impl_sdlrenderer.cpp ../../imgui*.cpp `sdl2-config --libs` -framework OpenGl
+```
-- 
cgit v1.1-26-g67d0