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

Method PushRenderables

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:1546–1563  ·  view source on GitHub ↗

Actually submit renderables to the list, called from GetRenderables

Source from the content-addressed store, hash-verified

1544
1545// Actually submit renderables to the list, called from GetRenderables
1546void EveSpaceObject2::PushRenderables( std::vector<ITr2Renderable*>& renderables )
1547{
1548 if( m_mesh && !m_mesh->IsLoading() && m_isMeshVisible )
1549 {
1550 renderables.push_back( this );
1551
1552 if( m_lodLevel >= TR2_LOD_MEDIUM )
1553 {
1554 CCP_STATS_INC( eveHighDetailObjects );
1555 }
1556 else
1557 {
1558 CCP_STATS_INC( eveLowDetailObjects );
1559 }
1560 }
1561
1562 PushChildrenAndDecalRenderables( renderables );
1563}
1564
1565void EveSpaceObject2::PushChildrenAndDecalRenderables( std::vector<ITr2Renderable*>& renderables )
1566{

Callers

nothing calls this directly

Calls 1

IsLoadingMethod · 0.45

Tested by

no test coverage detected