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

Method Initialize

trinity/Eve/SpaceObject/Children/EveChildMesh.cpp:77–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool EveChildMesh::Initialize()
78{
79 if( m_staticTransform )
80 {
81 RebuildLocalTransform();
82 }
83
84 InitializeAnimation();
85
86 if( g_eveIsAudioOcclusionGeometryEnabled && !m_audioGeometry )
87 {
88 BeClasses->CreateInstanceFromName( "AudGeometry", BlueInterfaceIID<ITr2AudGeometry>(), reinterpret_cast<void**>( &m_audioGeometry.p ) );
89 }
90
91 for( uint32_t i = 0; i < m_decals.size(); i++ )
92 {
93 m_decals[i]->SetPriority( i );
94 }
95
96 return true;
97}
98
99void EveChildMesh::OnListModified( long event, ssize_t key, ssize_t key2, IRoot* value, const IList* list )
100{

Callers 1

GetPerObjectDataMethod · 0.45

Calls 2

sizeMethod · 0.80
SetPriorityMethod · 0.45

Tested by

no test coverage detected