A texture cube.
More...
Inherits TextureCubemapBackend.
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
- Parameters
-
mtlDevice | The device for which MTLTexture and MTLSamplerState object was created. |
descriptor | Specify texture and sampler description. |
virtual void updateSamplerDescriptor |
( |
const SamplerDescriptor & |
sampler | ) |
|
|
overridevirtual |
Update sampler.
- Parameters
-
sampler | Specifies the sampler descriptor. |
Implements TextureBackend.
virtual void updateFaceData |
( |
TextureCubeFace |
side, |
|
|
void * |
data |
|
) |
| |
|
overridevirtual |
Update texutre cube data in give slice side.
- Parameters
-
side | Specifies which slice texture of cube to be update. |
data | Specifies a pointer to the image data in memory. |
Implements TextureCubemapBackend.
virtual void getBytes |
( |
std::size_t |
x, |
|
|
std::size_t |
y, |
|
|
std::size_t |
width, |
|
|
std::size_t |
height, |
|
|
bool |
flipImage, |
|
|
std::function< void(const unsigned char *, std::size_t, std::size_t)> |
callback |
|
) |
| |
|
overridevirtual |
Read a block of pixels from the drawable texture.
- Parameters
-
x,y | Specify the window coordinates of the first pixel that is read from the drawable texture. This location is the lower left corner of a rectangular block of pixels. |
width,height | Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. |
flipImage | Specifies if needs to flip the image. |
callback | |
Implements TextureBackend.
Update texture description.
- Parameters
-
descriptor | Specifies texture and sampler descriptor. |
Reimplemented from TextureBackend.
id<MTLTexture> getMTLTexture |
( |
| ) |
const |
|
inline |
Get MTLTexture object.
- Returns
- A MTLTexture object.
id<MTLSamplerState> getMTLSamplerState |
( |
| ) |
const |
|
inline |
Get MTLSamplerState object.
- Returns
- A MTLSamplerState object.
The documentation for this class was generated from the following file: