Actually submit renderables to the list, called from GetRenderables
| 1544 | |
| 1545 | // Actually submit renderables to the list, called from GetRenderables |
| 1546 | void 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 | |
| 1565 | void EveSpaceObject2::PushChildrenAndDecalRenderables( std::vector<ITr2Renderable*>& renderables ) |
| 1566 | { |