Texture cube.
More...
Inherits TextureCubemapBackend.
|
| TextureCubeGL (const TextureDescriptor &descriptor) |
|
virtual void | updateSamplerDescriptor (const SamplerDescriptor &sampler) override |
| Update sampler.
|
|
virtual void | updateFaceData (TextureCubeFace side, void *data) override |
| Update texutre cube data in give slice side.
|
|
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) override |
| Read a block of pixels from the drawable texture.
|
|
virtual void | generateMipmaps () override |
| Generate mipmaps.
|
|
virtual void | updateTextureDescriptor (const TextureDescriptor &descriptor) override |
| Update texture description.
|
|
GLuint | getHandler () const |
| Get texture object.
|
|
void | apply (int index) const |
| Set texture to pipeline.
|
|
|
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
-
descirptor | Specifies the texture 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.
GLuint getHandler |
( |
| ) |
const |
|
inline |
Get texture object.
- Returns
- Texture object.
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: