- Timestamp:
- 05/26/08 13:53:51 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgscreencapture/osgscreencapture.cpp
r8340 r8341 41 41 READ_PIXELS, 42 42 SINGLE_PBO, 43 DOUBLE_PBO 43 DOUBLE_PBO, 44 TRIPLE_PBO 44 45 }; 45 46 … … 58 59 _readBuffer(readBuffer), 59 60 _fileName(name), 60 _pixelFormat(GL_BGR ),61 _pixelFormat(GL_BGRA), 61 62 _type(GL_UNSIGNED_BYTE), 62 63 _width(0), … … 87 88 _pboBuffer.push_back(0); 88 89 break; 90 case(TRIPLE_PBO): 91 osg::notify(osg::NOTICE)<<"Reading window usig glReadPixels, with a double buffer PixelBufferObject."<<std::endl; 92 _pboBuffer.push_back(0); 93 _pboBuffer.push_back(0); 94 _pboBuffer.push_back(0); 95 break; 89 96 default: 90 97 break; … … 575 582 while (arguments.read("--single-pbo")) mode = WindowCaptureCallback::SINGLE_PBO; 576 583 while (arguments.read("--double-pbo")) mode = WindowCaptureCallback::DOUBLE_PBO; 584 while (arguments.read("--triple-pbo")) mode = WindowCaptureCallback::TRIPLE_PBO; 577 585 578 586
