| 249 | } |
| 250 | |
| 251 | void 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 | |
| 281 | void EveTransform::UpdateVisibility( const EveUpdateContext& updateContext, const Matrix& parentTransform ) |
| 282 | { |
nothing calls this directly
no test coverage detected