MCPcopy Create free account
hub / github.com/Norbyte/bg3se / Destroy

Method Destroy

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121Renderable::~Renderable() {}
122
123void Renderable::Destroy()
124{
125 if (Parent != InvalidHandle) {
126 auto parent = Manager->GetRenderable(Parent);
127 if (parent != nullptr) {
128 static_cast<TreeParent*>(parent)->RemoveChild(lua::ImguiHandle(Handle));
129 }
130 } else {
131 Manager->DestroyRenderable(Handle);
132 }
133}
134
135lua::ImguiHandle Renderable::GetParent() const
136{

Callers 1

DestroyRenderableMethod · 0.45

Calls 3

GetRenderableMethod · 0.80
RemoveChildMethod · 0.80
DestroyRenderableMethod · 0.80

Tested by

no test coverage detected