MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / Initialize

Method Initialize

libs/imgui/imgui.cpp:2577–2595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2575}
2576
2577void ImGui::Initialize()
2578{
2579 ImGuiContext& g = *GImGui;
2580 g.LogClipboard = IM_NEW(ImGuiTextBuffer)();
2581
2582 // Add .ini handle for ImGuiWindow type
2583 ImGuiSettingsHandler ini_handler;
2584 ini_handler.TypeName = "Window";
2585 ini_handler.TypeHash = ImHash("Window", 0, 0);
2586 ini_handler.ReadOpenFn = SettingsHandlerWindow_ReadOpen;
2587 ini_handler.ReadLineFn = SettingsHandlerWindow_ReadLine;
2588 ini_handler.WriteAllFn = SettingsHandlerWindow_WriteAll;
2589 g.SettingsHandlers.push_front(ini_handler);
2590
2591 // Load .ini file
2592 IM_ASSERT(g.SettingsWindows.empty());
2593 LoadIniSettingsFromDisk(g.IO.IniFilename);
2594 g.Initialized = true;
2595}
2596
2597// This function is merely here to free heap allocations.
2598void ImGui::Shutdown()

Callers 1

LoadMethod · 0.80

Calls 4

ImHashFunction · 0.85
LoadIniSettingsFromDiskFunction · 0.85
push_frontMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected