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.
|
| |
◆ TextureCubeGL()
- Parameters
-
| descirptor | Specifies the texture description. |
◆ updateSamplerDescriptor()
| virtual void updateSamplerDescriptor |
( |
const SamplerDescriptor & |
sampler | ) |
|
|
overridevirtual |
Update sampler.
- Parameters
-
| sampler | Specifies the sampler descriptor. |
Implements TextureBackend.
◆ updateFaceData()
| 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.
◆ getBytes()
| 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.
◆ updateTextureDescriptor()
Update texture description.
- Parameters
-
| descriptor | Specifies texture and sampler descriptor. |
Reimplemented from TextureBackend.
◆ getHandler()
| GLuint getHandler |
( |
| ) |
const |
|
inline |
Get texture object.
- Returns
- Texture object.
◆ apply()
| void apply |
( |
int |
index | ) |
const |
Set texture to pipeline.
- Parameters
-
| index | Specifies the texture image unit selector. |
The documentation for this class was generated from the following file: