mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Moved UserData
This commit is contained in:
parent
1d9a4748de
commit
48a944813c
@ -329,9 +329,9 @@ ImGuiIO::ImGuiIO()
|
|||||||
MousePosPrev = ImVec2(-1,-1);
|
MousePosPrev = ImVec2(-1,-1);
|
||||||
MouseDoubleClickTime = 0.30f;
|
MouseDoubleClickTime = 0.30f;
|
||||||
MouseDoubleClickMaxDist = 6.0f;
|
MouseDoubleClickMaxDist = 6.0f;
|
||||||
|
UserData = NULL;
|
||||||
|
|
||||||
// User functions
|
// User functions
|
||||||
UserData = NULL;
|
|
||||||
RenderDrawListsFn = NULL;
|
RenderDrawListsFn = NULL;
|
||||||
MemAllocFn = malloc;
|
MemAllocFn = malloc;
|
||||||
MemReallocFn = realloc;
|
MemReallocFn = realloc;
|
||||||
|
5
imgui.h
5
imgui.h
@ -423,13 +423,12 @@ struct ImGuiIO
|
|||||||
ImWchar FontFallbackGlyph; // = '?' // Replacement glyph is one isn't found.
|
ImWchar FontFallbackGlyph; // = '?' // Replacement glyph is one isn't found.
|
||||||
float PixelCenterOffset; // = 0.0f // Try to set to 0.5f or 0.375f if rendering is blurry
|
float PixelCenterOffset; // = 0.0f // Try to set to 0.5f or 0.375f if rendering is blurry
|
||||||
|
|
||||||
|
void* UserData; // = NULL // Store your own data for retrieval by callbacks.
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// User Functions
|
// User Functions
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
|
||||||
// Store your own data for retrieval by callbacks.
|
|
||||||
void* UserData; // = NULL
|
|
||||||
|
|
||||||
// REQUIRED: rendering function.
|
// REQUIRED: rendering function.
|
||||||
// See example code if you are unsure of how to implement this.
|
// See example code if you are unsure of how to implement this.
|
||||||
void (*RenderDrawListsFn)(ImDrawList** const draw_lists, int count);
|
void (*RenderDrawListsFn)(ImDrawList** const draw_lists, int count);
|
||||||
|
Loading…
Reference in New Issue
Block a user