A base texture.
More...
#include <Texture.h>
Inherits Object.
Inherited by TextureImpl, TextureImpl, TextureImpl, TextureImpl, and TextureImpl.
|
| virtual void | updateSamplerDesc (const SamplerDesc &desc)=0 |
| | Update sampler.
|
| virtual void | updateTextureDesc (const TextureDesc &desc) |
| | Update texture description.
|
| PixelFormat | getPixelFormat () const |
| | Get texture format.
|
| TextureUsage | getTextureUsage () const |
| | Get texture usage.
|
| TextureType | getTextureType () const |
| | Get texture type.
|
| bool | hasMipmaps () const |
| | Check if mipmap had generated before.
|
| virtual void | updateData (const void *data, int width, int height, int level, int layerIndex)=0 |
| | Update a two-dimensional texture image.
|
| virtual void | updateCompressedData (const void *data, int width, int height, size_t dataSize, int level, int layerIndex)=0 |
| | Update a two-dimensional texture image in a compressed format.
|
| virtual void | updateSubData (int xoffset, int yoffset, int width, int height, int level, const void *data, int layerIndex)=0 |
| | Update a two-dimensional texture subimage.
|
| virtual void | updateCompressedSubData (int xoffset, int yoffset, int width, int height, size_t dataSize, int level, const void *data, int layerIndex)=0 |
| | Update a two-dimensional texture subimage in a compressed format.
|
| virtual void | updateFaceData (TextureCubeFace side, const void *data)=0 |
| | Update texutre cube data in give slice side.
|
| void | zeroTexData () |
| | clear texture data to zero.
|
| void | retain () |
| | Retains the ownership.
|
| void | release () |
| | Releases the ownership immediately.
|
| Object * | autorelease () |
| | Releases the ownership sometime soon automatically.
|
| unsigned int | getReferenceCount () const |
| | Returns the Object's current reference count.
|
| uint64_t | getObjectID () const noexcept |
| | Returns the process-local diagnostic identifier assigned at construction.
|
| virtual | ~Object () |
| | Destructor.
|
◆ updateSamplerDesc()
| virtual void updateSamplerDesc |
( |
const SamplerDesc & | desc | ) |
|
|
pure virtual |
◆ updateTextureDesc()
| virtual void updateTextureDesc |
( |
const TextureDesc & | desc | ) |
|
|
virtual |
◆ getPixelFormat()
Get texture format.
- Returns
- Texture pixel format.
◆ getTextureUsage()
| TextureUsage getTextureUsage |
( |
| ) |
const |
|
inline |
Get texture usage.
Symbolic constant can be READ, WRITE or RENDER_TARGET.
- Returns
- Texture usage.
◆ getTextureType()
| TextureType getTextureType |
( |
| ) |
const |
|
inline |
Get texture type.
Symbolic constant value can be either TEXTURE_2D or TEXTURE_CUBE.
- Returns
- Texture type.
◆ hasMipmaps()
| bool hasMipmaps |
( |
| ) |
const |
|
inline |
Check if mipmap had generated before.
- Returns
- true if the mipmap has always generated before, otherwise false.
◆ updateData()
| virtual void updateData |
( |
const void * | data, |
|
|
int | width, |
|
|
int | height, |
|
|
int | level, |
|
|
int | layerIndex ) |
|
pure virtual |
Update a two-dimensional texture image.
- Parameters
-
| data | Specifies a pointer to the image data in memory. |
| width | Specifies the width of the texture image. |
| height | Specifies the height of the texture image. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implemented in TextureImpl, TextureImpl, TextureImpl, TextureImpl, and TextureImpl.
◆ updateCompressedData()
| virtual void updateCompressedData |
( |
const void * | data, |
|
|
int | width, |
|
|
int | height, |
|
|
size_t | dataSize, |
|
|
int | level, |
|
|
int | layerIndex ) |
|
pure virtual |
Update a two-dimensional texture image in a compressed format.
- Parameters
-
| data | Specifies a pointer to the compressed image data in memory. |
| width | Specifies the width of the texture image. |
| height | Specifies the height of the texture image. |
| dataSize | Specifies the totoal size of compressed image in bytes. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implemented in TextureImpl, TextureImpl, TextureImpl, TextureImpl, and TextureImpl.
◆ updateSubData()
| virtual void updateSubData |
( |
int | xoffset, |
|
|
int | yoffset, |
|
|
int | width, |
|
|
int | height, |
|
|
int | level, |
|
|
const void * | data, |
|
|
int | layerIndex ) |
|
pure virtual |
Update a two-dimensional texture subimage.
- Parameters
-
| xoffset | Specifies a texel offset in the x direction within the texture array. |
| yoffset | Specifies a texel offset in the y direction within the texture array. |
| width | Specifies the width of the texture subimage. |
| height | Specifies the height of the texture subimage. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| data | Specifies a pointer to the image data in memory. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implemented in TextureImpl, TextureImpl, TextureImpl, TextureImpl, and TextureImpl.
◆ updateCompressedSubData()
| virtual void updateCompressedSubData |
( |
int | xoffset, |
|
|
int | yoffset, |
|
|
int | width, |
|
|
int | height, |
|
|
size_t | dataSize, |
|
|
int | level, |
|
|
const void * | data, |
|
|
int | layerIndex ) |
|
pure virtual |
Update a two-dimensional texture subimage in a compressed format.
- Parameters
-
| xoffset | Specifies a texel offset in the x direction within the texture array. |
| yoffset | Specifies a texel offset in the y direction within the texture array. |
| width | Specifies the width of the texture subimage. |
| height | Specifies the height of the texture subimage. |
| dataSize | Specifies the totoal size of compressed subimage in bytes. |
| level | Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. |
| data | Specifies a pointer to the compressed image data in memory. |
| layerIndex | Specifies the layer index for 2D array textures. |
Implemented in TextureImpl, TextureImpl, TextureImpl, TextureImpl, and TextureImpl.
◆ updateFaceData()
| virtual void updateFaceData |
( |
TextureCubeFace | side, |
|
|
const void * | data ) |
|
pure virtual |
◆ zeroTexData()
clear texture data to zero.
The documentation for this class was generated from the following file: