![]() |
VR-Forces 4.8 Class Documentation
|
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 |
Wrapper for OpenGL Texture.
| 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 |
DTOR.
|
inlinevirtual |
set the name
|
virtual |
Format of the texture.
|
virtual |
Size in bytes of the texture.
|
virtual |
Width of the texture.
|
virtual |
Height of the texture. Pertinent to only 2D and 3D textures.
|
virtual |
Depth of the texture. Pertinent to only 3D textures.
|
virtual |
Upload data to a texture. Size must match size in bytes of the texture.
|
virtual |
Upload data to a texture.
width/height/depth <= width/height/depth of texture
|
virtual |
|
virtual |
set the external texture reference
|
virtual |
get the external texture reference
|
virtual |
delete the externally referenced texture
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |