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/examples/osgscreencapture/osgscreencapture.cpp

    r10064 r10600  
    138138            void read() 
    139139            { 
    140                 osg::BufferObject::Extensions* ext = osg::BufferObject::getExtensions(_gc->getState()->getContextID(),true); 
     140                osg::GLBufferObject::Extensions* ext = osg::GLBufferObject::getExtensions(_gc->getState()->getContextID(),true); 
    141141 
    142142                if (ext->isPBOSupported() && !_pboBuffer.empty()) 
     
    159159            void readPixels(); 
    160160 
    161             void singlePBO(osg::BufferObject::Extensions* ext); 
    162  
    163             void multiPBO(osg::BufferObject::Extensions* ext); 
     161            void singlePBO(osg::GLBufferObject::Extensions* ext); 
     162 
     163            void multiPBO(osg::GLBufferObject::Extensions* ext); 
    164164         
    165165            typedef std::vector< osg::ref_ptr<osg::Image> >             ImageBuffer; 
     
    326326} 
    327327 
    328 void WindowCaptureCallback::ContextData::singlePBO(osg::BufferObject::Extensions* ext) 
     328void WindowCaptureCallback::ContextData::singlePBO(osg::GLBufferObject::Extensions* ext) 
    329329{ 
    330330    // std::cout<<"singelPBO(  "<<_fileName<<" image "<<_currentImageIndex<<" "<<_currentPboIndex<<std::endl; 
     
    403403} 
    404404 
    405 void WindowCaptureCallback::ContextData::multiPBO(osg::BufferObject::Extensions* ext) 
     405void WindowCaptureCallback::ContextData::multiPBO(osg::GLBufferObject::Extensions* ext) 
    406406{ 
    407407    // std::cout<<"multiPBO(  "<<_fileName<<" image "<<_currentImageIndex<<" "<<_currentPboIndex<<std::endl;