MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetLights

Method GetLights

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3536–3555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3534}
3535
3536void EveSpaceObject2::GetLights( Tr2LightManager& lightManager ) const
3537{
3538 if( !m_display )
3539 {
3540 return;
3541 }
3542
3543 XMMATRIX worldTransform = m_worldTransform;
3544
3545 size_t boneCount = 0;
3546 const Float4x3* bones = nullptr;
3547 Tr2GrannyAnimationUtils::GetBoneList( m_animationUpdater, bones, boneCount );
3548
3549 for( auto it = std::begin( m_lights ); it != std::end( m_lights ); ++it )
3550 {
3551 ( *it )->AddLight( lightManager, worldTransform, 1.0f, bones, boneCount );
3552 ( *it )->SetBrightnessMultiplier( m_activationStrength );
3553 }
3554 auto displayChildren = DisplayChildren();
3555}
3556
3557// --------------------------------------------------------------------------------
3558bool EveSpaceObject2::IsPickable() const

Callers

nothing calls this directly

Calls 5

GetBoneListFunction · 0.85
beginFunction · 0.50
endFunction · 0.50
AddLightMethod · 0.45

Tested by

no test coverage detected