mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-13 00:24:20 +00:00
Add a UserData pointer so that the callback functions can easily 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
c40dc84909
2 changed files with 2 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ ImGuiIO::ImGuiIO()
|
|||
|
||||
// User functions
|
||||
RenderDrawListsFn = NULL;
|
||||
UserData = NULL;
|
||||
MemAllocFn = malloc;
|
||||
MemReallocFn = realloc;
|
||||
MemFreeFn = free;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue