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

Method Initialize

Source/Objects/dynamiclightobject.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65bool DynamicLightObject::Initialize() {
66 LOG_ASSERT(light_id_ == -1);
67 light_id_ = scenegraph_->dynamic_light_collection.AddLight(GetTranslation(), color * (1.0f + overbright * 0.3f), RadiusFromScale(scale_));
68 return true;
69}
70
71void DynamicLightObject::Moved(Object::MoveType type) {
72 Object::Moved(type);

Callers

nothing calls this directly

Calls 3

GetTranslationFunction · 0.85
RadiusFromScaleFunction · 0.85
AddLightMethod · 0.80

Tested by

no test coverage detected