VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
makVrv::DtGLTextureBufferObject Class Reference

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

Detailed Description

Wrapper for OpenGL Texture Buffer Object.

Constructor & Destructor Documentation

makVrv::DtGLTextureBufferObject::DtGLTextureBufferObject ( Device *  pDevice,
const byte pData,
size_t  sizeInBytes,
DtDataFormat  format,
DtUsage  usage,
DtCpuAccess  cpuAccess 
)

CTOR.

virtual makVrv::DtGLTextureBufferObject::~DtGLTextureBufferObject ( )
virtual

DTOR.

Member Function Documentation

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.

DtDataFormat makVrv::DtGLTextureBufferObject::format ( void  ) const
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  )
private
void makVrv::DtGLTextureBufferObject::reInitialize ( const byte pData)
private

Member Data Documentation

GLuint makVrv::DtGLTextureBufferObject::myTextureBufferObjectID
private
GLuint makVrv::DtGLTextureBufferObject::myTextureID
private
size_t makVrv::DtGLTextureBufferObject::mySizeInBytes
private
DtUsage makVrv::DtGLTextureBufferObject::myUsage
private
DtCpuAccess makVrv::DtGLTextureBufferObject::myCPUAccess
private
DtDataFormat makVrv::DtGLTextureBufferObject::myFormat
private
GLenum makVrv::DtGLTextureBufferObject::myGLUsage
private
GLenum makVrv::DtGLTextureBufferObject::myGLInternalFormat
private

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)