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

Method GetRenderables

trinity/Eve/EvePlanet.cpp:221–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void EvePlanet::GetRenderables( std::vector<ITr2Renderable*>& renderables )
222{
223 if( !m_display )
224 {
225 return;
226 }
227 if( m_lodLevel != TR2_LOD_HIGH )
228 {
229 return;
230 }
231
232 // visible at all?
233 if( m_estimatedPixelDiameter > m_minScreenSize )
234 {
235 for( auto ecIt = m_effectChildren.begin(); ecIt != m_effectChildren.end(); ++ecIt )
236 {
237 ( *ecIt )->GetRenderables( renderables );
238 }
239 }
240}
241
242float EvePlanet::GetEstimatedPixelDiameter()
243{

Callers 9

GatherBatchesMethod · 0.45
RenderReflectionPassMethod · 0.45
EndRenderMethod · 0.45
Render3DUIMethod · 0.45
RenderPlanetsMethod · 0.45
GetZOnlyRenderablesMethod · 0.45
RunQueryMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected