MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Dispose

Method Dispose

Source/Objects/dynamiclightobject.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void DynamicLightObject::Dispose() {
84 Object::Dispose();
85 if (scenegraph_ && light_id_ != -1) {
86 bool success = scenegraph_->dynamic_light_collection.DeleteLight(light_id_);
87 LOG_ASSERT(success);
88 light_id_ = -1;
89 }
90}
91
92DynamicLightObject::DynamicLightObject() {
93 box_.dims = vec3(1.0f);

Callers

nothing calls this directly

Calls 1

DeleteLightMethod · 0.80

Tested by

no test coverage detected