Show
Ignore:
Timestamp:
05/01/07 08:28:20 (8 years ago)
Author:
robert
Message:

Moved VBO switching code into inline methods into osg::State to speed performance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgparametric/osgparametric.cpp

    r6560 r6578  
    224224    vertices->setVertexBufferObject(vbObject); 
    225225     
    226     osg::ElementsBufferObject* ebo = new osg::ElementsBufferObject; 
     226    osg::ElementBufferObject* ebo = new osg::ElementBufferObject; 
    227227 
    228228    for(iy=0; iy<num_y-1; ++iy) 
     
    238238        geom->addPrimitiveSet(elements);  
    239239         
    240         if (ebo) elements->setElementsBufferObject(ebo);    
     240        if (ebo) elements->setElementBufferObject(ebo);    
    241241    } 
    242242