MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / ~ImguiLayer

Method ~ImguiLayer

ZEngine/src/ImguiLayer.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 bool ImguiLayer::m_initialized = false;
15
16 ImguiLayer::~ImguiLayer() {
17 m_ui_components.clear();
18 if (m_initialized) {
19 ImGui_ImplOpenGL3_Shutdown();
20
21#ifdef ZENGINE_WINDOW_SDL
22 ImGui_ImplSDL2_Shutdown();
23#else
24 ImGui_ImplGlfw_Shutdown();
25#endif
26 ImGui::DestroyContext();
27
28 m_initialized = false;
29 }
30 }
31
32 void ImguiLayer::Initialize() {
33 if (!m_initialized) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected