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