Show
Ignore:
Timestamp:
10/01/09 22:19:42 (5 years ago)
Author:
robert
Message:

Introduced new BufferObject? design + implementation in preperation of implementing a pool system for buffer objects

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/ScreenCaptureHandler.cpp

    r9416 r10600  
    7474            void read();             
    7575            void readPixels(); 
    76             void singlePBO(osg::BufferObject::Extensions* ext); 
    77             void multiPBO(osg::BufferObject::Extensions* ext); 
     76            void singlePBO(osg::GLBufferObject::Extensions* ext); 
     77            void multiPBO(osg::GLBufferObject::Extensions* ext); 
    7878 
    7979            typedef std::vector< osg::ref_ptr<osg::Image> >             ImageBuffer; 
     
    221221void WindowCaptureCallback::ContextData::read() 
    222222{ 
    223     osg::BufferObject::Extensions* ext = osg::BufferObject::getExtensions(_gc->getState()->getContextID(),true); 
     223    osg::GLBufferObject::Extensions* ext = osg::GLBufferObject::getExtensions(_gc->getState()->getContextID(),true); 
    224224 
    225225    if (ext->isPBOSupported() && !_pboBuffer.empty()) 
     
    278278} 
    279279 
    280 void WindowCaptureCallback::ContextData::singlePBO(osg::BufferObject::Extensions* ext) 
     280void WindowCaptureCallback::ContextData::singlePBO(osg::GLBufferObject::Extensions* ext) 
    281281{ 
    282282    unsigned int nextImageIndex = (_currentImageIndex+1)%_imageBuffer.size(); 
     
    353353} 
    354354 
    355 void WindowCaptureCallback::ContextData::multiPBO(osg::BufferObject::Extensions* ext) 
     355void WindowCaptureCallback::ContextData::multiPBO(osg::GLBufferObject::Extensions* ext) 
    356356{ 
    357357    unsigned int nextImageIndex = (_currentImageIndex+1)%_imageBuffer.size();