Public Types | |
| enum | Mode { NONE = 0, READ = 1, WRITE = 2 } |
Public Member Functions | |
| PixelDataBufferObject () | |
| PixelDataBufferObject (const PixelDataBufferObject &pbo, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| META_Object (osg, PixelDataBufferObject) | |
| void | setDataSize (unsigned int size) |
| Set new size of the buffer object. This will reallocate the memory on the next compile. | |
| unsigned int | getDataSize () |
| Get data size of the used buffer. | |
| virtual void | compileBuffer (State &state) const |
| Compile the buffer (reallocate the memory if buffer is dirty). | |
| virtual void | bindBufferInReadMode (State &state) |
| Bind the buffer in read mode, which means that data can be downloaded from the buffer (note: GL_PIXEL_UNPACK_BUFFER_ARB). | |
| virtual void | bindBufferInWriteMode (State &state) |
| Bind the buffer in write mode, which means following OpenGL instructions will write data into the buffer (note: GL_PIXEL_PACK_BUFFER_ARB). | |
| virtual void | unbindBuffer (unsigned int contextID) const |
| Unbind the buffer. | |
| virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
| Resize any per context GLObject buffers to specified size. | |
| Mode | getMode (unsigned int contextID) const |
Protected Types | |
| typedef osg::buffered_value < unsigned int > | ModeList |
Protected Member Functions | |
| virtual | ~PixelDataBufferObject () |
Protected Attributes | |
| BufferEntry | _bufferData |
| ModeList | _mode |
The memory can then be used either for CPU-GPU pixel transfer or directly for GPU-GPU transfer, without CPU intervention.
typedef osg::buffered_value<unsigned int> osg::PixelDataBufferObject::ModeList [protected] |
| NONE | A normal mode of this data buffer. |
| READ |
Buffer is in read mode (.
|
| WRITE |
Buffer is in write mode (.
|
| osg::PixelDataBufferObject::PixelDataBufferObject | ( | ) |
| osg::PixelDataBufferObject::PixelDataBufferObject | ( | const PixelDataBufferObject & | pbo, | |
| const CopyOp & | copyop = CopyOp::SHALLOW_COPY | |||
| ) |
| virtual osg::PixelDataBufferObject::~PixelDataBufferObject | ( | ) | [protected, virtual] |
| virtual void osg::PixelDataBufferObject::bindBufferInReadMode | ( | State & | state | ) | [virtual] |
Bind the buffer in read mode, which means that data can be downloaded from the buffer (note: GL_PIXEL_UNPACK_BUFFER_ARB).
| virtual void osg::PixelDataBufferObject::bindBufferInWriteMode | ( | State & | state | ) | [virtual] |
Bind the buffer in write mode, which means following OpenGL instructions will write data into the buffer (note: GL_PIXEL_PACK_BUFFER_ARB).
| virtual void osg::PixelDataBufferObject::compileBuffer | ( | State & | state | ) | const [virtual] |
| unsigned int osg::PixelDataBufferObject::getDataSize | ( | ) | [inline] |
Get data size of the used buffer.
| Mode osg::PixelDataBufferObject::getMode | ( | unsigned int | contextID | ) | const [inline] |
| osg::PixelDataBufferObject::META_Object | ( | osg | , | |
| PixelDataBufferObject | ||||
| ) |
| virtual void osg::PixelDataBufferObject::resizeGLObjectBuffers | ( | unsigned int | maxSize | ) | [virtual] |
| void osg::PixelDataBufferObject::setDataSize | ( | unsigned int | size | ) | [inline] |
Set new size of the buffer object. This will reallocate the memory on the next compile.
| virtual void osg::PixelDataBufferObject::unbindBuffer | ( | unsigned int | contextID | ) | const [virtual] |
BufferEntry osg::PixelDataBufferObject::_bufferData [protected] |
ModeList osg::PixelDataBufferObject::_mode [mutable, protected] |
| Generated at Sat May 14 08:21:11 2011 for the OpenSceneGraph by doxygen 1.5.9. |