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::DtGLTexture Class Reference

Wrapper for OpenGL Texture. More...

Public Member Functions

 DtGLTexture (Device *pDevice, const byte *pData, size_t byteLength)
 CTOR.
 DtGLTexture (Device *pDevice, TextureType type, size_t width, size_t height, size_t depth, DtDataFormat format, const DtUsage usage, const DtCpuAccess cpuAccess, const int bindFlags, void *pData)
 CTOR.
 DtGLTexture (Device *pDevice, TextureType type, size_t externalRefTexID, size_t width=1, size_t height=1, size_t depth=1)
 CTOR.
virtual ~DtGLTexture ()
 DTOR.
DtDataFormat format (void) const
 Format of the texture.
size_t sizeInBytes (void) const
 Size in bytes of the texture.
size_t width (void) const
 Width of the texture.
size_t height (void) const
 Height of the texture. Pertinent to only 2D and 3D textures.
size_t depth (void) const
 Depth of the texture. Pertinent to only 3D textures.
void copyData (void *pData)
 Upload data to a texture. Size must match size in bytes of the texture.
void copyData (void *pData, size_t width, size_t height, size_t depth)
 Upload data to a texture.
void bindTexture (void)
void setExternalTextureReference (size_t externalRefTexID)
size_t textureReference () const

Private Member Functions

bool is1D (void) const
bool is2D (void) const
bool is3D (void) const

Private Attributes

GLuint myTextureID
TextureType myTextureType
size_t myWidth
size_t myHeight
size_t myDepth
DtDataFormat myFormat
bool myExternalTexRef

Detailed Description

Wrapper for OpenGL Texture.

Constructor & Destructor Documentation

makVrv::DtGLTexture::DtGLTexture ( Device *  pDevice,
const byte pData,
size_t  byteLength 
)

CTOR.

makVrv::DtGLTexture::DtGLTexture ( Device *  pDevice,
TextureType  type,
size_t  width,
size_t  height,
size_t  depth,
DtDataFormat  format,
const DtUsage  usage,
const DtCpuAccess  cpuAccess,
const int  bindFlags,
void *  pData 
)

CTOR.

makVrv::DtGLTexture::DtGLTexture ( Device *  pDevice,
TextureType  type,
size_t  externalRefTexID,
size_t  width = 1,
size_t  height = 1,
size_t  depth = 1 
)

CTOR.

virtual makVrv::DtGLTexture::~DtGLTexture ( )
virtual

DTOR.

Member Function Documentation

DtDataFormat makVrv::DtGLTexture::format ( void  ) const

Format of the texture.

size_t makVrv::DtGLTexture::sizeInBytes ( void  ) const

Size in bytes of the texture.

size_t makVrv::DtGLTexture::width ( void  ) const

Width of the texture.

size_t makVrv::DtGLTexture::height ( void  ) const

Height of the texture. Pertinent to only 2D and 3D textures.

size_t makVrv::DtGLTexture::depth ( void  ) const

Depth of the texture. Pertinent to only 3D textures.

void makVrv::DtGLTexture::copyData ( void *  pData)

Upload data to a texture. Size must match size in bytes of the texture.

void makVrv::DtGLTexture::copyData ( void *  pData,
size_t  width,
size_t  height,
size_t  depth 
)

Upload data to a texture.

width/height/depth <= width/height/depth of texture

void makVrv::DtGLTexture::bindTexture ( void  )
void makVrv::DtGLTexture::setExternalTextureReference ( size_t  externalRefTexID)
size_t makVrv::DtGLTexture::textureReference ( ) const
bool makVrv::DtGLTexture::is1D ( void  ) const
private
bool makVrv::DtGLTexture::is2D ( void  ) const
private
bool makVrv::DtGLTexture::is3D ( void  ) const
private

Member Data Documentation

GLuint makVrv::DtGLTexture::myTextureID
private
TextureType makVrv::DtGLTexture::myTextureType
private
size_t makVrv::DtGLTexture::myWidth
private
size_t makVrv::DtGLTexture::myHeight
private
size_t makVrv::DtGLTexture::myDepth
private
DtDataFormat makVrv::DtGLTexture::myFormat
private
bool makVrv::DtGLTexture::myExternalTexRef
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)