Comments to clarify default shared ImFontAtlas and current context pointer thread-safety (#586, #591)

This commit is contained in:
ocornut
2016-05-08 17:12:54 +02:00
parent 8a0d3b9628
commit aa11934efa
2 changed files with 7 additions and 6 deletions

View File

@ -444,6 +444,7 @@ namespace ImGui
IMGUI_API void SetClipboardText(const char* text);
// Internal context access - if you want to use multiple context, share context between modules (e.g. DLL). There is a default context created and active by default.
// All contexts share a same ImFontAtlas by default. If you want different font atlas, you can new() them and overwrite the GetIO().Fonts variable of an ImGui context.
IMGUI_API const char* GetVersion();
IMGUI_API ImGuiContext* CreateContext(void* (*malloc_fn)(size_t) = NULL, void (*free_fn)(void*) = NULL);
IMGUI_API void DestroyContext(ImGuiContext* ctx);