From ccacaf0582bcea4a71ec8247ade0fd75e4ca99bf Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 9 Jan 2026 16:15:27 +0100 Subject: refactor library includes, build file --- libs/imgui-1.92.1/misc/README.txt | 23 ------ libs/imgui-1.92.1/misc/cpp/README.txt | 13 ---- libs/imgui-1.92.1/misc/cpp/imgui_stdlib.cpp | 88 ---------------------- libs/imgui-1.92.1/misc/cpp/imgui_stdlib.h | 25 ------ libs/imgui-1.92.1/misc/debuggers/README.txt | 16 ---- libs/imgui-1.92.1/misc/debuggers/imgui.gdb | 12 --- .../misc/debuggers/imgui.natstepfilter | 31 -------- libs/imgui-1.92.1/misc/debuggers/imgui.natvis | 58 -------------- .../misc/single_file/imgui_single_file.h | 29 ------- 9 files changed, 295 deletions(-) delete mode 100644 libs/imgui-1.92.1/misc/README.txt delete mode 100644 libs/imgui-1.92.1/misc/cpp/README.txt delete mode 100644 libs/imgui-1.92.1/misc/cpp/imgui_stdlib.cpp delete mode 100644 libs/imgui-1.92.1/misc/cpp/imgui_stdlib.h delete mode 100644 libs/imgui-1.92.1/misc/debuggers/README.txt delete mode 100644 libs/imgui-1.92.1/misc/debuggers/imgui.gdb delete mode 100644 libs/imgui-1.92.1/misc/debuggers/imgui.natstepfilter delete mode 100644 libs/imgui-1.92.1/misc/debuggers/imgui.natvis delete mode 100644 libs/imgui-1.92.1/misc/single_file/imgui_single_file.h (limited to 'libs/imgui-1.92.1/misc') diff --git a/libs/imgui-1.92.1/misc/README.txt b/libs/imgui-1.92.1/misc/README.txt deleted file mode 100644 index b4ce89f..0000000 --- a/libs/imgui-1.92.1/misc/README.txt +++ /dev/null @@ -1,23 +0,0 @@ - -misc/cpp/ - InputText() wrappers for C++ standard library (STL) type: std::string. - This is also an example of how you may wrap your own similar types. - -misc/debuggers/ - Helper files for popular debuggers. - With the .natvis file, types like ImVector<> will be displayed nicely in Visual Studio debugger. - -misc/fonts/ - Fonts loading/merging instructions (e.g. How to handle glyph ranges, how to merge icons fonts). - Command line tool "binary_to_compressed_c" to create compressed arrays to embed data in source code. - Suggested fonts and links. - -misc/freetype/ - Font atlas builder/rasterizer using FreeType instead of stb_truetype. - Benefit from better FreeType rasterization, in particular for small fonts. - -misc/single_file/ - Single-file header stub. - We use this to validate compiling all *.cpp files in a same compilation unit. - Users of that technique (also called "Unity builds") can generally provide this themselves, - so we don't really recommend you use this in your projects. diff --git a/libs/imgui-1.92.1/misc/cpp/README.txt b/libs/imgui-1.92.1/misc/cpp/README.txt deleted file mode 100644 index 17f0a3c..0000000 --- a/libs/imgui-1.92.1/misc/cpp/README.txt +++ /dev/null @@ -1,13 +0,0 @@ - -imgui_stdlib.h + imgui_stdlib.cpp - InputText() wrappers for C++ standard library (STL) type: std::string. - This is also an example of how you may wrap your own similar types. - -imgui_scoped.h - [Experimental, not currently in main repository] - Additional header file with some RAII-style wrappers for common Dear ImGui functions. - Try by merging: https://github.com/ocornut/imgui/pull/2197 - Discuss at: https://github.com/ocornut/imgui/issues/2096 - -See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: - https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness diff --git a/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.cpp b/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.cpp deleted file mode 100644 index c04d487..0000000 --- a/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) -// This is also an example of how you may wrap your own similar types. - -// Changelog: -// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string - -// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: -// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness - -#include "imgui.h" -#ifndef IMGUI_DISABLE -#include "imgui_stdlib.h" - -// Clang warnings with -Weverything -#if defined(__clang__) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wsign-conversion" // warning: implicit conversion changes signedness -#endif - -struct InputTextCallback_UserData -{ - std::string* Str; - ImGuiInputTextCallback ChainCallback; - void* ChainCallbackUserData; -}; - -static int InputTextCallback(ImGuiInputTextCallbackData* data) -{ - InputTextCallback_UserData* user_data = (InputTextCallback_UserData*)data->UserData; - if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) - { - // Resize string callback - // If for some reason we refuse the new length (BufTextLen) and/or capacity (BufSize) we need to set them back to what we want. - std::string* str = user_data->Str; - IM_ASSERT(data->Buf == str->c_str()); - str->resize(data->BufTextLen); - data->Buf = (char*)str->c_str(); - } - else if (user_data->ChainCallback) - { - // Forward to user callback, if any - data->UserData = user_data->ChainCallbackUserData; - return user_data->ChainCallback(data); - } - return 0; -} - -bool ImGui::InputText(const char* label, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputText(label, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); -} - -bool ImGui::InputTextMultiline(const char* label, std::string* str, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputTextMultiline(label, (char*)str->c_str(), str->capacity() + 1, size, flags, InputTextCallback, &cb_user_data); -} - -bool ImGui::InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data) -{ - IM_ASSERT((flags & ImGuiInputTextFlags_CallbackResize) == 0); - flags |= ImGuiInputTextFlags_CallbackResize; - - InputTextCallback_UserData cb_user_data; - cb_user_data.Str = str; - cb_user_data.ChainCallback = callback; - cb_user_data.ChainCallbackUserData = user_data; - return InputTextWithHint(label, hint, (char*)str->c_str(), str->capacity() + 1, flags, InputTextCallback, &cb_user_data); -} - -#if defined(__clang__) -#pragma clang diagnostic pop -#endif - -#endif // #ifndef IMGUI_DISABLE diff --git a/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.h b/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.h deleted file mode 100644 index 697fc34..0000000 --- a/libs/imgui-1.92.1/misc/cpp/imgui_stdlib.h +++ /dev/null @@ -1,25 +0,0 @@ -// dear imgui: wrappers for C++ standard library (STL) types (std::string, etc.) -// This is also an example of how you may wrap your own similar types. - -// Changelog: -// - v0.10: Initial version. Added InputText() / InputTextMultiline() calls with std::string - -// See more C++ related extension (fmt, RAII, syntaxis sugar) on Wiki: -// https://github.com/ocornut/imgui/wiki/Useful-Extensions#cness - -#pragma once - -#ifndef IMGUI_DISABLE - -#include - -namespace ImGui -{ - // ImGui::InputText() with std::string - // Because text input needs dynamic resizing, we need to setup a callback to grow the capacity - IMGUI_API bool InputText(const char* label, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); - IMGUI_API bool InputTextMultiline(const char* label, std::string* str, const ImVec2& size = ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); - IMGUI_API bool InputTextWithHint(const char* label, const char* hint, std::string* str, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = nullptr, void* user_data = nullptr); -} - -#endif // #ifndef IMGUI_DISABLE diff --git a/libs/imgui-1.92.1/misc/debuggers/README.txt b/libs/imgui-1.92.1/misc/debuggers/README.txt deleted file mode 100644 index 3f4ba83..0000000 --- a/libs/imgui-1.92.1/misc/debuggers/README.txt +++ /dev/null @@ -1,16 +0,0 @@ - -HELPER FILES FOR POPULAR DEBUGGERS - -imgui.gdb - GDB: disable stepping into trivial functions. - (read comments inside file for details) - -imgui.natstepfilter - Visual Studio Debugger: disable stepping into trivial functions. - (read comments inside file for details) - -imgui.natvis - Visual Studio Debugger: describe Dear ImGui types for better display. - With this, types like ImVector<> will be displayed nicely in the debugger. - (read comments inside file for details) - diff --git a/libs/imgui-1.92.1/misc/debuggers/imgui.gdb b/libs/imgui-1.92.1/misc/debuggers/imgui.gdb deleted file mode 100644 index 000ff6e..0000000 --- a/libs/imgui-1.92.1/misc/debuggers/imgui.gdb +++ /dev/null @@ -1,12 +0,0 @@ -# GDB configuration to aid debugging experience - -# To enable these customizations edit $HOME/.gdbinit (or ./.gdbinit if local gdbinit is enabled) and add: -# add-auto-load-safe-path /path/to/imgui.gdb -# source /path/to/imgui.gdb -# -# More Information at: -# * https://sourceware.org/gdb/current/onlinedocs/gdb/gdbinit-man.html -# * https://sourceware.org/gdb/current/onlinedocs/gdb/Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory - -# Disable stepping into trivial functions -skip -rfunction Im(Vec2|Vec4|Strv|Vector|Span)::.+ diff --git a/libs/imgui-1.92.1/misc/debuggers/imgui.natstepfilter b/libs/imgui-1.92.1/misc/debuggers/imgui.natstepfilter deleted file mode 100644 index 6825c93..0000000 --- a/libs/imgui-1.92.1/misc/debuggers/imgui.natstepfilter +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - (ImVec2|ImVec4|ImStrv)::.+ - NoStepInto - - - (ImVector|ImSpan).*::operator.+ - NoStepInto - - - diff --git a/libs/imgui-1.92.1/misc/debuggers/imgui.natvis b/libs/imgui-1.92.1/misc/debuggers/imgui.natvis deleted file mode 100644 index 13b6360..0000000 --- a/libs/imgui-1.92.1/misc/debuggers/imgui.natvis +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - {{Size={Size} Capacity={Capacity}}} - - - Size - Data - - - - - - {{Size={DataEnd-Data} }} - - - DataEnd-Data - Data - - - - - - {{x={x,g} y={y,g}}} - - - - {{x={x,g} y={y,g} z={z,g} w={w,g}}} - - - - {{Min=({Min.x,g} {Min.y,g}) Max=({Max.x,g} {Max.y,g}) Size=({Max.x-Min.x,g} {Max.y-Min.y,g})}} - - Min - Max - Max.x - Min.x - Max.y - Min.y - - - - - {{Name {Name,s} Active {(Active||WasActive)?1:0,d} Child {(Flags & 0x01000000)?1:0,d} Popup {(Flags & 0x04000000)?1:0,d} Hidden {(Hidden)?1:0,d}} - - - diff --git a/libs/imgui-1.92.1/misc/single_file/imgui_single_file.h b/libs/imgui-1.92.1/misc/single_file/imgui_single_file.h deleted file mode 100644 index 7ca31e0..0000000 --- a/libs/imgui-1.92.1/misc/single_file/imgui_single_file.h +++ /dev/null @@ -1,29 +0,0 @@ -// dear imgui: single-file wrapper include -// We use this to validate compiling all *.cpp files in a same compilation unit. -// Users of that technique (also called "Unity builds") can generally provide this themselves, -// so we don't really recommend you use this in your projects. - -// Do this: -// #define IMGUI_IMPLEMENTATION -// Before you include this file in *one* C++ file to create the implementation. -// Using this in your project will leak the contents of imgui_internal.h and ImVec2 operators in this compilation unit. - -#ifdef IMGUI_IMPLEMENTATION -#define IMGUI_DEFINE_MATH_OPERATORS -#endif - -#include "../../imgui.h" -#ifdef IMGUI_ENABLE_FREETYPE -#include "../../misc/freetype/imgui_freetype.h" -#endif - -#ifdef IMGUI_IMPLEMENTATION -#include "../../imgui.cpp" -#include "../../imgui_demo.cpp" -#include "../../imgui_draw.cpp" -#include "../../imgui_tables.cpp" -#include "../../imgui_widgets.cpp" -#ifdef IMGUI_ENABLE_FREETYPE -#include "../../misc/freetype/imgui_freetype.cpp" -#endif -#endif -- cgit v1.2.3-70-g09d2