45 void setName(
const char * name) { myName = name; }
51 size_t sizeInBytes(
void)
const;
54 void copyData(
void* pData,
size_t sizeInBytes,
size_t offsetInBytes = 0);
57 void copyAndOrphanStreamedData(
void* pData,
size_t sizeInBytes);
60 void copyDataMapped(
void* pData,
size_t sizeInBytes,
size_t offsetInBytes = 0);
65 void bindTexture(
void);
71 void resize(
size_t sizeInBytes);
92 void reInitialize(
const byte* pData);
Wrapper for OpenGL Texture Buffer Object.
Definition: DtGlTextureBufferObject.h:27
size_t mySizeInBytes
Definition: DtGlTextureBufferObject.h:81
void setName(const char *name)
Definition: DtGlTextureBufferObject.h:45
void setUseBufferedData(bool val)
Definition: DtGlTextureBufferObject.h:74
bool getUseBufferedData()
Definition: DtGlTextureBufferObject.h:75
GLuint myTextureBufferObjectID
Definition: DtGlTextureBufferObject.h:79
DtDataFormat myFormat
Definition: DtGlTextureBufferObject.h:85
DtCpuAccess myCPUAccess
Definition: DtGlTextureBufferObject.h:84
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
DtUsage
Definition: DtUsage.h:13
unsigned char byte
Definition: DtCommonTypes.h:36
std::string myName
Definition: DtGlTextureBufferObject.h:78
Enumerations for cpu access required by textures/buffers.
DtUsage myUsage
Definition: DtGlTextureBufferObject.h:83
GLenum myGLInternalFormat
Definition: DtGlTextureBufferObject.h:87
DtDataFormat format(void) const
Format of the texture.
Definition: DtGlTextureBufferObject.h:63
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
char * myBufferData
Definition: DtGlTextureBufferObject.h:90
bool myUseBufferData
Definition: DtGlTextureBufferObject.h:89
DtDataFormat
Definition: DtDataFormat.h:15
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
GLuint myTextureID
Definition: DtGlTextureBufferObject.h:80
DtCpuAccess
Definition: DtCpuAccess.h:13
GLenum myGLUsage
Definition: DtGlTextureBufferObject.h:86