| 58 | } |
| 59 | |
| 60 | void EveCurveLineSet::UpdateVisibility( const EveUpdateContext& updateContext, const Matrix& parentTransform ) |
| 61 | { |
| 62 | m_isVisible = false; |
| 63 | |
| 64 | if( !m_display ) |
| 65 | { |
| 66 | return; |
| 67 | } |
| 68 | |
| 69 | // local transform |
| 70 | Matrix localTransform = TransformationMatrix( m_scaling, m_rotation, m_translation ); |
| 71 | |
| 72 | // store final world transform |
| 73 | m_worldTransform = localTransform * parentTransform; |
| 74 | Vector4 boundingSphere = m_boundingSphere; |
| 75 | BoundingSphereTransform( m_worldTransform, boundingSphere ); |
| 76 | |
| 77 | // cull! |
| 78 | if( updateContext.GetFrustum().IsSphereVisible( &boundingSphere ) ) |
| 79 | { |
| 80 | m_isVisible = true; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // ------------------------------------------------------------------------------------------------------ |
| 85 | void EveCurveLineSet::GetRenderables( std::vector<ITr2Renderable*>& renderables, Tr2ImpostorManager* impostors ) |
nothing calls this directly
no test coverage detected