VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 (const char *name, const byte *pData, size_t byteLength)
 CTOR.
 DtGlTexture (const char *name, 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 (TextureType type, size_t externalRefTexID, size_t width=1, size_t height=1, size_t depth=1)
 CTOR.
void setName (const char *name)
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
void releaseGLObjects () const

Private Member Functions

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

Private Attributes

std::string myName
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 ( const char name,
const byte pData,
size_t  byteLength 
)

CTOR.

makVrv::DtGlTexture::DtGlTexture ( const char name,
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 ( 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

void makVrv::DtGlTexture::setName ( const char name)
inline
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
void makVrv::DtGlTexture::releaseGLObjects ( ) 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

std::string makVrv::DtGlTexture::myName
private
GLuint makVrv::DtGlTexture::myTextureID
mutableprivate
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)