Skip to content

Commit

Permalink
Update imgui
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jul 31, 2024
1 parent 8fd8415 commit 4ddf0fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deps/imgui
Submodule imgui updated 44 files
+1 −0 backends/imgui_impl_allegro5.h
+1 −0 backends/imgui_impl_android.h
+1 −0 backends/imgui_impl_dx10.h
+1 −0 backends/imgui_impl_dx11.h
+2 −0 backends/imgui_impl_dx12.h
+1 −0 backends/imgui_impl_dx9.h
+44 −18 backends/imgui_impl_glfw.cpp
+4 −2 backends/imgui_impl_glfw.h
+1 −0 backends/imgui_impl_glut.h
+2 −0 backends/imgui_impl_metal.h
+1 −0 backends/imgui_impl_opengl2.h
+1 −0 backends/imgui_impl_opengl3.cpp
+1 −1 backends/imgui_impl_opengl3.h
+2 −0 backends/imgui_impl_osx.h
+2 −1 backends/imgui_impl_osx.mm
+19 −5 backends/imgui_impl_sdl2.cpp
+1 −0 backends/imgui_impl_sdl2.h
+66 −56 backends/imgui_impl_sdl3.cpp
+3 −3 backends/imgui_impl_sdl3.h
+1 −0 backends/imgui_impl_sdlrenderer2.h
+1 −0 backends/imgui_impl_sdlrenderer3.h
+1 −1 backends/imgui_impl_vulkan.h
+1 −0 backends/imgui_impl_wgpu.h
+2 −1 backends/imgui_impl_win32.cpp
+1 −0 backends/imgui_impl_win32.h
+19 −19 docs/BACKENDS.md
+159 −0 docs/CHANGELOG.txt
+6 −39 docs/EXAMPLES.md
+1 −1 docs/FAQ.md
+3 −3 docs/README.md
+1 −1 examples/example_android_opengl3/android/app/src/main/AndroidManifest.xml
+1 −1 examples/example_glfw_opengl3/main.cpp
+14 −1 examples/example_glfw_wgpu/CMakeLists.txt
+1 −1 examples/example_glfw_wgpu/main.cpp
+1 −1 examples/example_sdl3_opengl3/main.cpp
+20 −0 examples/imgui_examples.sln
+9 −4 imconfig.h
+269 −127 imgui.cpp
+283 −53 imgui.h
+1,813 −269 imgui_demo.cpp
+4 −1 imgui_draw.cpp
+147 −64 imgui_internal.h
+29 −26 imgui_tables.cpp
+1,270 −156 imgui_widgets.cpp
13 changes: 9 additions & 4 deletions src/imconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@

//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows
// Using Dear ImGui via a shared library is not recommended, because of function call overhead and because we don't guarantee backward nor forward ABI compatibility.
// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions()
// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details.
// - Windows DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions()
// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details.
#ifdef IMGUI_EXPORT
#define IMGUI_API __declspec(dllexport)
#define IMGUI_API __declspec(dllexport) // MSVC Windows: DLL export
#define IMPLOT_API IMGUI_API
#else
#define IMGUI_API __declspec(dllimport)
#define IMGUI_API __declspec(dllimport) // MSVC Windows: DLL import
//#define IMGUI_API __attribute__((visibility("default"))) // GCC/Clang: override visibility when set is hidden
#define IMPLOT_API IMGUI_API
#endif

Expand All @@ -47,13 +48,17 @@
//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS // [Win32] [Default with non-Visual Studio compilers] Don't implement default IME handler (won't require imm32.lib/.a)
//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, IME).
//#define IMGUI_ENABLE_OSX_DEFAULT_CLIPBOARD_FUNCTIONS // [OSX] Implement default OSX clipboard handler (need to link with '-framework ApplicationServices', this is why this is not the default).
//#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS // Don't implement default io.PlatformOpenInShellFn() handler (Win32: ShellExecute(), require shell32.lib/.a, Mac/Linux: use system("")).
//#define IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf)
//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself.
//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies)
//#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle so you can implement them yourself if you don't want to link with fopen/fclose/fread/fwrite. This will also disable the LogToTTY() function.
//#define IMGUI_DISABLE_DEFAULT_ALLOCATORS // Don't implement default allocators calling malloc()/free() to avoid linking with them. You will need to call ImGui::SetAllocatorFunctions().
//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available

//---- Enable Test Engine / Automation features.
//#define IMGUI_ENABLE_TEST_ENGINE // Enable imgui_test_engine hooks. Generally set automatically by include "imgui_te_config.h", see Test Engine for details.

//---- Include imgui_user.h at the end of imgui.h as a convenience
// May be convenient for some users to only explicitly include vanilla imgui.h and have extra stuff included.
//#define IMGUI_INCLUDE_IMGUI_USER_H
Expand Down

0 comments on commit 4ddf0fa

Please sign in to comment.