![]() |
VR-Forces 4.6.1 Class Documentation
|
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 |
Wrapper for OpenGL Texture.
| 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 |
DTOR.
|
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 |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |