mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Added a UserData void *pointer so that the callback functions can access user state
"Just in case a project has adverse reactions to adding globals or statics in their own code."
This commit is contained in:
parent
36212b9ad9
commit
1d9a4748de
2 changed files with 4 additions and 0 deletions
|
|
@ -331,6 +331,7 @@ ImGuiIO::ImGuiIO()
|
|||
MouseDoubleClickMaxDist = 6.0f;
|
||||
|
||||
// User functions
|
||||
UserData = NULL;
|
||||
RenderDrawListsFn = NULL;
|
||||
MemAllocFn = malloc;
|
||||
MemReallocFn = realloc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue