CreateContext

Index of this file: // SECTION Header mess // SECTION Forward declarations and basic types // SECTION Dear ImGui end-user API functions // SECTION Flags & Enumerations // SECTION Tables API flags and structures (ImGuiTableFlags, ImGuiTableColumnFlags, ImGuiTableRowFlags, ImGuiTableBgTarget, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) // SECTION Helpers: Debug log, Memory allocations macros, ImVector<> // SECTION ImGuiStyle // SECTION ImGuiIO // SECTION Misc data structures (ImGuiInputTextCallbackData, ImGuiSizeCallbackData, ImGuiPayload) // SECTION Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) // SECTION Multi-Select API flags and structures (ImGuiMultiSelectFlags, ImGuiMultiSelectIO, ImGuiSelectionRequest, ImGuiSelectionBasicStorage, ImGuiSelectionExternalStorage) // SECTION Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) // SECTION Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) // SECTION Viewports (ImGuiViewportFlags, ImGuiViewport) // SECTION ImGuiPlatformIO + other Platform Dependent Interfaces (ImGuiPlatformImeData) // SECTION Obsolete functions and types

Context creation and access - Each context create its own ImFontAtlas by default. You may instance one yourself and pass it to CreateContext() to share a font atlas between contexts. - DLL users: heaps and globals are not shared across DLL boundaries! You will need to call SetCurrentContext() + SetAllocatorFunctions() for each static/DLL boundary you are calling from. Read "Context and Memory Allocators" section of imgui.cpp for details.

scope @trusted
ImGuiContext_t*
CreateContext
(
scope const(ImFontAtlas_t)* shared_font_atlas
)

Meta