![]() |
VR-Forces 4.3 Class Documentation
|
Wrapper for OpenGL Texture Buffer Object. More...
Public Member Functions | |
| DtGLTextureBufferObject (Device *pDevice, const byte *pData, size_t sizeInBytes, DtDataFormat format, DtUsage usage, DtCpuAccess cpuAccess) | |
| CTOR. | |
| virtual | ~DtGLTextureBufferObject () |
| DTOR. | |
| size_t | sizeInBytes (void) const |
| Size in bytes of the texture buffer object. | |
| void | copyData (void *pData, size_t sizeInBytes, size_t offsetInBytes=0) |
| Upload data to the buffer. offset + size <= size of buffer. | |
| void | copyDataMapped (void *pData, size_t sizeInBytes, size_t offsetInBytes=0) |
| Upload data to the buffer using glMapBuffer. | |
| DtDataFormat | format (void) const |
| Format of the texture. | |
| void | bindTexture (void) |
| void | bindTBO (void) |
| void * | mapTBO (void) |
| void | unmapTBO (void) |
| void | resize (size_t sizeInBytes) |
| Resize the tbo to a new size. | |
Private Member Functions | |
| void | tearDown (void) |
| void | reInitialize (const byte *pData) |
Private Attributes | |
| GLuint | myTextureBufferObjectID |
| GLuint | myTextureID |
| size_t | mySizeInBytes |
| DtUsage | myUsage |
| DtCpuAccess | myCPUAccess |
| DtDataFormat | myFormat |
| GLenum | myGLUsage |
| GLenum | myGLInternalFormat |
Wrapper for OpenGL Texture Buffer Object.
| makVrv::DtGLTextureBufferObject::DtGLTextureBufferObject | ( | Device * | pDevice, |
| const byte * | pData, | ||
| size_t | sizeInBytes, | ||
| DtDataFormat | format, | ||
| DtUsage | usage, | ||
| DtCpuAccess | cpuAccess | ||
| ) |
CTOR.
|
virtual |
DTOR.
| size_t makVrv::DtGLTextureBufferObject::sizeInBytes | ( | void | ) | const |
Size in bytes of the texture buffer object.
| void makVrv::DtGLTextureBufferObject::copyData | ( | void * | pData, |
| size_t | sizeInBytes, | ||
| size_t | offsetInBytes = 0 |
||
| ) |
Upload data to the buffer. offset + size <= size of buffer.
| void makVrv::DtGLTextureBufferObject::copyDataMapped | ( | void * | pData, |
| size_t | sizeInBytes, | ||
| size_t | offsetInBytes = 0 |
||
| ) |
Upload data to the buffer using glMapBuffer.
|
inline |
Format of the texture.
| void makVrv::DtGLTextureBufferObject::bindTexture | ( | void | ) |
| void makVrv::DtGLTextureBufferObject::bindTBO | ( | void | ) |
| void* makVrv::DtGLTextureBufferObject::mapTBO | ( | void | ) |
| void makVrv::DtGLTextureBufferObject::unmapTBO | ( | void | ) |
| void makVrv::DtGLTextureBufferObject::resize | ( | size_t | sizeInBytes | ) |
Resize the tbo to a new size.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |