Esempio n. 1
0
    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 );
        }
    }
Esempio n. 2
0
    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 );
        }
    }