![]() |
VR-Forces 5.0.3 Developer's Guide
|
Wrapper for OpenGL Texture Buffer Object.
Public Member Functions | |
| DtGlTextureBufferObject (const char *name, size_t sizeInBytes, DtDataFormat format, DtUsage usage, DtCpuAccess cpuAccess) | |
| DtGlTextureBufferObject (const char *name, DtDataFormat format, DtUsage usage, DtCpuAccess cpuAccess) | |
| void | setName (const char *name) |
| virtual | ~DtGlTextureBufferObject () |
| size_t | sizeInBytes (void) const |
| void | copyData (void *pData, size_t sizeInBytes, size_t offsetInBytes=0) |
| void | copyAndOrphanStreamedData (void *pData, size_t sizeInBytes) |
| void | copyDataMapped (void *pData, size_t sizeInBytes, size_t offsetInBytes=0) |
| DtDataFormat | format (void) const |
| void | bindTexture (void) |
| void | bindTBO (void) |
| void * | mapTBO (void) |
| void | unmapTBO (void) |
| void | resize (size_t sizeInBytes) |
| void | tearDown (void) |
| void | setUseBufferedData (bool val) |
| bool | getUseBufferedData () |
Private Member Functions | |
| void | reInitialize (const byte *pData) |
Private Attributes | |
| std::string | myName |
| GLuint | myTextureBufferObjectID |
| GLuint | myTextureID |
| size_t | mySizeInBytes |
| DtUsage | myUsage |
| DtCpuAccess | myCPUAccess |
| DtDataFormat | myFormat |
| GLenum | myGLUsage |
| GLenum | myGLInternalFormat |
| bool | myUseBufferData |
| char * | myBufferData |
| makVrv::DtGlTextureBufferObject::DtGlTextureBufferObject | ( | const char * | name, |
| size_t | sizeInBytes, | ||
| DtDataFormat | format, | ||
| DtUsage | usage, | ||
| DtCpuAccess | cpuAccess | ||
| ) |
CTOR.
| makVrv::DtGlTextureBufferObject::DtGlTextureBufferObject | ( | const char * | name, |
| DtDataFormat | format, | ||
| DtUsage | usage, | ||
| DtCpuAccess | cpuAccess | ||
| ) |
|
virtual |
DTOR.
|
inline |
| 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::copyAndOrphanStreamedData | ( | void * | pData, |
| size_t | sizeInBytes | ||
| ) |
Upload and resize buffer, assumes used for just a frame.
| 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.
| void makVrv::DtGlTextureBufferObject::tearDown | ( | void | ) |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |