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

Method GetRenderables

trinity/Eve/EveTransform.cpp:251–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void EveTransform::GetRenderables( std::vector<ITr2Renderable*>& renderables, Tr2ImpostorManager* impostors )
252{
253 // is this one here enabled?
254 if( m_hideOnLowQuality && Tr2Renderer::IsLowQuality() )
255 {
256 return;
257 }
258
259 if( !m_display )
260 {
261 return;
262 }
263
264 for( auto it = m_particleSystems.begin(); it != m_particleSystems.end(); it++ )
265 {
266 ( *it )->SortParticles();
267 }
268
269 if( m_isVisible && m_mesh )
270 {
271 renderables.push_back( this );
272 }
273
274 for( IEveTransformVector::const_iterator it = m_children.begin(); it != m_children.end(); ++it )
275 {
276 IEveTransform* p = *it;
277 p->GetRenderables( renderables );
278 }
279}
280
281void EveTransform::UpdateVisibility( const EveUpdateContext& updateContext, const Matrix& parentTransform )
282{

Callers

nothing calls this directly

Calls 3

SortParticlesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected