You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/ImGui/src/ImGui/imgui/imconfig.h
+20-9Lines changed: 20 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,14 @@
21
21
22
22
//---- Define attributes of all API symbols declarations, e.g. for DLL under Windows
23
23
// 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.
24
-
// DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions()
25
-
// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details.
26
-
//#define IMGUI_API __declspec( dllexport )
27
-
//#define IMGUI_API __declspec( dllimport )
24
+
// - Windows DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions()
25
+
// for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for more details.
//#define IMGUI_API __attribute__((visibility("default"))) // GCC/Clang: override visibility when set is hidden
28
29
29
30
//---- Don't define obsolete functions/enums/behaviors. Consider enabling from time to time after updating to clean your code of obsolete function/names.
30
31
//#define IMGUI_DISABLE_OBSOLETE_FUNCTIONS
31
-
//#define IMGUI_DISABLE_OBSOLETE_KEYIO // 1.87+ disable legacy io.KeyMap[]+io.KeysDown[] in favor io.AddKeyEvent(). This is automatically done by IMGUI_DISABLE_OBSOLETE_FUNCTIONS.
32
32
33
33
//---- Disable all of Dear ImGui or don't implement standard windows/tools.
34
34
// It is very strongly recommended to NOT disable the demo windows and debug tool during development. They are extremely useful in day to day work. Please read comments in imgui_demo.cpp.
@@ -42,21 +42,29 @@
42
42
//#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)
43
43
//#define IMGUI_DISABLE_WIN32_FUNCTIONS // [Win32] Won't use and link with any Win32 function (clipboard, IME).
44
44
//#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_FORMAT_FUNCTIONS // Don't implement ImFormatString/ImFormatStringV so you can implement them yourself (e.g. if you don't want to link with vsnprintf)
46
47
//#define IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS // Don't implement ImFabs/ImSqrt/ImPow/ImFmod/ImCos/ImSin/ImAcos/ImAtan2 so you can implement them yourself.
47
48
//#define IMGUI_DISABLE_FILE_FUNCTIONS // Don't implement ImFileOpen/ImFileClose/ImFileRead/ImFileWrite and ImFileHandle at all (replace them with dummies)
48
49
//#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.
49
50
//#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().
51
+
//#define IMGUI_DISABLE_DEFAULT_FONT // Disable default embedded font (ProggyClean.ttf), remove ~9.5 KB from output binary. AddFontDefault() will assert.
50
52
//#define IMGUI_DISABLE_SSE // Disable use of SSE intrinsics even if available
51
53
54
+
//---- Enable Test Engine / Automation features.
55
+
//#define IMGUI_ENABLE_TEST_ENGINE // Enable imgui_test_engine hooks. Generally set automatically by include "imgui_te_config.h", see Test Engine for details.
56
+
52
57
//---- Include imgui_user.h at the end of imgui.h as a convenience
53
58
// May be convenient for some users to only explicitly include vanilla imgui.h and have extra stuff included.
//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another)
62
+
//---- Pack vertex colors as BGRA8 instead of RGBA8 (to avoid converting from one to another). Need dedicated backend support.
58
63
//#define IMGUI_USE_BGRA_PACKED_COLOR
59
64
65
+
//---- Use legacy CRC32-adler tables (used before 1.91.6), in order to preserve old .ini data that you cannot afford to invalidate.
66
+
//#define IMGUI_USE_LEGACY_CRC32_ADLER
67
+
60
68
//---- Use 32-bit for ImWchar (default is 16-bit) to support Unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...)
61
69
//#define IMGUI_USE_WCHAR32
62
70
@@ -78,10 +86,13 @@
78
86
// On Windows you may use vcpkg with 'vcpkg install freetype --triplet=x64-windows' + 'vcpkg integrate install'.
79
87
//#define IMGUI_ENABLE_FREETYPE
80
88
81
-
//---- Use FreeType+lunasvg library to render OpenType SVG fonts (SVGinOT)
82
-
// Requires lunasvg headers to be available in the include path + program to be linked with the lunasvg library (not provided).
89
+
//---- Use FreeType + plutosvg or lunasvg to render OpenType SVG fonts (SVGinOT)
83
90
// Only works in combination with IMGUI_ENABLE_FREETYPE.
84
-
// (implementation is based on Freetype's rsvg-port.c which is licensed under CeCILL-C Free Software License Agreement)
91
+
// - lunasvg is currently easier to acquire/install, as e.g. it is part of vcpkg.
92
+
// - plutosvg will support more fonts and may load them faster. It currently requires to be built manually but it is fairly easy. See misc/freetype/README for instructions.
93
+
// - Both require headers to be available in the include path + program to be linked with the library code (not provided).
94
+
// - (note: lunasvg implementation is based on Freetype's rsvg-port.c which is licensed under CeCILL-C Free Software License Agreement)
95
+
//#define IMGUI_ENABLE_FREETYPE_PLUTOSVG
85
96
//#define IMGUI_ENABLE_FREETYPE_LUNASVG
86
97
87
98
//---- Use stb_truetype to build and rasterize the font atlas (default)
0 commit comments