void generateRenderBricks( const ConstCacheObjects& renderNodes, RenderBricks& renderBricks ) { renderBricks.reserve( renderNodes.size( )); BOOST_FOREACH( const ConstCacheObjectPtr& cacheObject, renderNodes ) { const ConstTextureObjectPtr texture = boost::static_pointer_cast< const TextureObject >( cacheObject ); RenderBrickPtr renderBrick( new RenderBrick( texture->getLODNode(), texture->getTextureState( ))); renderBricks.push_back( renderBrick ); } }
void View::render( const FrameInfo& frameInfo, const RenderBricks& bricks, const GLWidget& widget ) { if( !rendererPtr_ ) return ; onPreRender_( widget, frameInfo ); if( !bricks.empty( )) rendererPtr_->render( widget, *this, frameInfo.currentFrustum, bricks ); onPostRender_( widget, frameInfo ); }
void generateRenderBricks( const DashNodeVector& renderNodeList, RenderBricks& renderBricks ) { BOOST_FOREACH( const dash::NodePtr& dashNode, renderNodeList ) { const DashRenderNode dashRenderNode( dashNode ); const ConstTextureObjectPtr texture = boost::static_pointer_cast< const TextureObject >( dashRenderNode.getTextureObject( )); RenderBrickPtr renderBrick( new RenderBrick( texture->getLODNode(), texture->getTextureState( ))); renderBricks.push_back( renderBrick ); } }