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

Method UpdateSyncronous

trinity/Eve/UI/EveSpherePin.cpp:186–221  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

184
185// ------------------------------------------------------------------------------------------------------
186void EveSpherePin::UpdateSyncronous( const EveUpdateContext& updateContext )
187{
188 CCP_STATS_ZONE( __FUNCTION__ );
189
190 if( !m_tree )
191 {
192 if( !m_geomResPath.empty() )
193 {
194 TriGrannyResPtr granny;
195 BeResMan->GetResource( m_geomResPath, "raw", granny );
196 if( granny )
197 {
198 if( !( *s_treeMap )[granny] )
199 {
200 ( *s_treeMap )[granny] = new EveSpherePinIndexTree( granny );
201 }
202 m_tree = ( *s_treeMap )[granny];
203 }
204 m_rebuildIndices = 1;
205 }
206 }
207 if( m_tree && m_rebuildIndices )
208 {
209 if( !m_tree->IsInitialized() )
210 {
211 if( m_tree->Initialize() )
212 {
213 CreateIndexBuffer();
214 }
215 }
216 else
217 {
218 CreateIndexBuffer();
219 }
220 }
221}
222
223// ------------------------------------------------------------------------------------------------------
224void EveSpherePin::UpdateAsyncronous( const EveUpdateContext& updateContext )

Callers

nothing calls this directly

Calls 5

CreateIndexBufferFunction · 0.85
emptyMethod · 0.80
GetResourceMethod · 0.45
IsInitializedMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected