VR-Forces 4.8 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::DtGlSimpleTexture Class Reference

Wrapper for OpenGL Texture. More...

Public Member Functions

 DtGlSimpleTexture (const char *name, const byte *pData, size_t byteLength)
 CTOR. More...
 
 DtGlSimpleTexture (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)
 CTOR. More...
 
 DtGlSimpleTexture (const char *name, TextureType type, size_t externalRefTexID, size_t width=1, size_t height=1, size_t depth=1)
 CTOR. More...
 
virtual void setName (const char *name)
 set the name More...
 
virtual ~DtGlSimpleTexture ()
 DTOR. More...
 
virtual DtDataFormat format (void) const
 Format of the texture. More...
 
virtual size_t sizeInBytes (void) const
 Size in bytes of the texture. More...
 
virtual size_t width (void) const
 Width of the texture. More...
 
virtual size_t height (void) const
 Height of the texture. Pertinent to only 2D and 3D textures. More...
 
virtual size_t depth (void) const
 Depth of the texture. Pertinent to only 3D textures. More...
 
virtual void copyData (void *pData)
 Upload data to a texture. Size must match size in bytes of the texture. More...
 
virtual void copyData (void *pData, size_t width, size_t height, size_t depth)
 Upload data to a texture. More...
 
virtual void bindTexture (void)
 
virtual void setExternalTextureReference (size_t externalRefTexID)
 set the external texture reference More...
 
virtual size_t textureReference () const
 get the external texture reference More...
 
virtual void releaseGLObjects ()
 delete the externally referenced texture More...
 

Private Member Functions

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

Private Attributes

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

CTOR.

makVrv::DtGlSimpleTexture::DtGlSimpleTexture ( 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 
)

CTOR.

makVrv::DtGlSimpleTexture::DtGlSimpleTexture ( const char name,
TextureType  type,
size_t  externalRefTexID,
size_t  width = 1,
size_t  height = 1,
size_t  depth = 1 
)

CTOR.

virtual makVrv::DtGlSimpleTexture::~DtGlSimpleTexture ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtGlSimpleTexture::setName ( const char name)
inlinevirtual

set the name

virtual DtDataFormat makVrv::DtGlSimpleTexture::format ( void  ) const
virtual

Format of the texture.

virtual size_t makVrv::DtGlSimpleTexture::sizeInBytes ( void  ) const
virtual

Size in bytes of the texture.

virtual size_t makVrv::DtGlSimpleTexture::width ( void  ) const
virtual

Width of the texture.

virtual size_t makVrv::DtGlSimpleTexture::height ( void  ) const
virtual

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

virtual size_t makVrv::DtGlSimpleTexture::depth ( void  ) const
virtual

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

virtual void makVrv::DtGlSimpleTexture::copyData ( void *  pData)
virtual

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

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

Upload data to a texture.

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

virtual void makVrv::DtGlSimpleTexture::bindTexture ( void  )
virtual
virtual void makVrv::DtGlSimpleTexture::setExternalTextureReference ( size_t  externalRefTexID)
virtual

set the external texture reference

virtual size_t makVrv::DtGlSimpleTexture::textureReference ( ) const
virtual

get the external texture reference

virtual void makVrv::DtGlSimpleTexture::releaseGLObjects ( )
virtual

delete the externally referenced texture

bool makVrv::DtGlSimpleTexture::is1D ( void  ) const
private
bool makVrv::DtGlSimpleTexture::is2D ( void  ) const
private
bool makVrv::DtGlSimpleTexture::is3D ( void  ) const
private

Member Data Documentation

std::string makVrv::DtGlSimpleTexture::myName
private
unsigned int makVrv::DtGlSimpleTexture::myTextureID
private
TextureType makVrv::DtGlSimpleTexture::myTextureType
private
size_t makVrv::DtGlSimpleTexture::myWidth
private
size_t makVrv::DtGlSimpleTexture::myHeight
private
size_t makVrv::DtGlSimpleTexture::myDepth
private
DtDataFormat makVrv::DtGlSimpleTexture::myFormat
private
bool makVrv::DtGlSimpleTexture::myExternalTexRef
private

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)