------------------------------------------------------------------------------------------------------
| 184 | |
| 185 | // ------------------------------------------------------------------------------------------------------ |
| 186 | void 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 | // ------------------------------------------------------------------------------------------------------ |
| 224 | void EveSpherePin::UpdateAsyncronous( const EveUpdateContext& updateContext ) |
nothing calls this directly
no test coverage detected