|
1 | | -// dear imgui, v1.91.9 |
| 1 | +// dear imgui, v1.91.9b |
2 | 2 | // (headers) |
3 | 3 |
|
4 | 4 | // Help: |
|
28 | 28 |
|
29 | 29 | // Library Version |
30 | 30 | // (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345') |
31 | | -#define IMGUI_VERSION "1.91.9" |
32 | | -#define IMGUI_VERSION_NUM 19190 |
| 31 | +#define IMGUI_VERSION "1.91.9b" |
| 32 | +#define IMGUI_VERSION_NUM 19191 |
33 | 33 | #define IMGUI_HAS_TABLE |
34 | 34 | #define IMGUI_HAS_VIEWPORT // Viewport WIP branch |
35 | 35 | #define IMGUI_HAS_DOCK // Docking WIP branch |
|
39 | 39 | Index of this file: |
40 | 40 | // [SECTION] Header mess |
41 | 41 | // [SECTION] Forward declarations and basic types |
| 42 | +// [SECTION] Texture identifier (ImTextureID) |
42 | 43 | // [SECTION] Dear ImGui end-user API functions |
43 | 44 | // [SECTION] Flags & Enumerations |
44 | 45 | // [SECTION] Tables API flags and structures (ImGuiTableFlags, ImGuiTableColumnFlags, ImGuiTableRowFlags, ImGuiTableBgTarget, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) |
@@ -255,22 +256,6 @@ typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: f |
255 | 256 | typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport |
256 | 257 | typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() |
257 | 258 |
|
258 | | -// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] |
259 | | -// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. |
260 | | -// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. |
261 | | -// - You can make this a structure with various constructors if you need. You will have to implement ==/!= operators. |
262 | | -// - (note: before v1.91.4 (2024/10/08) the default type for ImTextureID was void*. Use intermediary intptr_t cast and read FAQ if you have casting warnings) |
263 | | -#ifndef ImTextureID |
264 | | -typedef ImU64 ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) |
265 | | -#endif |
266 | | - |
267 | | -// ImDrawIdx: vertex index. [Compile-time configurable type] |
268 | | -// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). |
269 | | -// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. |
270 | | -#ifndef ImDrawIdx |
271 | | -typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) |
272 | | -#endif |
273 | | - |
274 | 259 | // Character types |
275 | 260 | // (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) |
276 | 261 | typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. |
@@ -320,6 +305,19 @@ struct ImVec4 |
320 | 305 | }; |
321 | 306 | IM_MSVC_RUNTIME_CHECKS_RESTORE |
322 | 307 |
|
| 308 | +//----------------------------------------------------------------------------- |
| 309 | +// [SECTION] Texture identifier (ImTextureID) |
| 310 | +//----------------------------------------------------------------------------- |
| 311 | + |
| 312 | +// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] |
| 313 | +// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. |
| 314 | +// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. |
| 315 | +// - You can make this a structure with various constructors if you need. You will have to implement ==/!= operators. |
| 316 | +// - (note: before v1.91.4 (2024/10/08) the default type for ImTextureID was void*. Use intermediary intptr_t cast and read FAQ if you have casting warnings) |
| 317 | +#ifndef ImTextureID |
| 318 | +typedef ImU64 ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) |
| 319 | +#endif |
| 320 | + |
323 | 321 | //----------------------------------------------------------------------------- |
324 | 322 | // [SECTION] Dear ImGui end-user API functions |
325 | 323 | // (Note that ImGui:: being a namespace, you can add extra ImGui:: functions in your own separate file. Please don't modify imgui source files!) |
@@ -3072,6 +3070,13 @@ struct ImGuiSelectionExternalStorage |
3072 | 3070 | #define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32) |
3073 | 3071 | #endif |
3074 | 3072 |
|
| 3073 | +// ImDrawIdx: vertex index. [Compile-time configurable type] |
| 3074 | +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). |
| 3075 | +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. |
| 3076 | +#ifndef ImDrawIdx |
| 3077 | +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) |
| 3078 | +#endif |
| 3079 | + |
3075 | 3080 | // ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] |
3076 | 3081 | // NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, |
3077 | 3082 | // you can poke into the draw list for that! Draw callback may be useful for example to: |
|
0 commit comments