![]() |
VR-Forces 4.0.4 Class Documentation
|
An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture data. More...
Public Member Functions | |
| DtPixelBufferObject () | |
| ~DtPixelBufferObject () | |
| void | downloadFromTexture (unsigned int texture, int w, int h) |
| Starts downloading the texture from memory. | |
| void | getData (void *data) |
| Get the data by copying it into the available data. | |
| unsigned int | bufferSize () const |
| Return the buffered data in bytes. | |
Protected Attributes | |
| unsigned int | myBufferObject |
| unsigned int | myBufferSize |
An object which wraps an OpenGL pixel buffer object and allows for asynchronous downloads of texture data.
| void makVrv::DtPixelBufferObject::downloadFromTexture | ( | unsigned int | texture, |
| int | w, | ||
| int | h | ||
| ) |
Starts downloading the texture from memory.
| void makVrv::DtPixelBufferObject::getData | ( | void * | data | ) |
Get the data by copying it into the available data.
Warning! this will block until downloading is complete. Warning! if downloading has not started no data will be available. Warning! data must be atleast bufferSize bytes.
| unsigned int makVrv::DtPixelBufferObject::bufferSize | ( | ) | const |
Return the buffered data in bytes.
unsigned int makVrv::DtPixelBufferObject::myBufferObject [protected] |
unsigned int makVrv::DtPixelBufferObject::myBufferSize [protected] |