![]() |
NDEVR
API Documentation
|
A pointer to an Image and functions relating to that image within the GLES logic space. More...
Public Member Functions | |
| GLESImageData (const DynamicPointer< GLESGraphicsDevice > &device, const StringView &image_id) | |
| Constructs a GLESImageData and uploads the image to GPU. | |
| void | destroy (const DynamicPointer< GLESGraphicsDevice > &instance) |
| Deletes the GPU texture resource. | |
| bool | hasAlpha () const |
| Checks whether the image has an alpha channel. | |
| bool | needsUpdate () const |
| Checks whether the source image has been modified since last upload. | |
| void | setUniformVariables (uint04 bind_position, const DynamicPointer< GLESGraphicsDevice > &instance) const |
| Binds this texture to the given texture unit for shader use. | |
| void | update (const DynamicPointer< GLESGraphicsDevice > &instance) |
| Reloads and re-uploads the image texture to GPU. | |
| Public Member Functions inherited from Image | |
| virtual | ~Image () |
| Virtual destructor for proper cleanup of derived Image classes. | |
| virtual uint04 | pixelSize () const |
| Returns the number of bytes per pixel in this image. | |
| virtual uint01 * | scanLine (uint04 row) |
| Returns a pointer to the raw pixel data for a given scanline (row). | |
| virtual Vector< 2, uint04 > | size () const |
| Returns the dimensions of the image as a 2D vector (width, height). | |
A pointer to an Image and functions relating to that image within the GLES logic space.
Definition at line 56 of file GLESImage.h.
|
inline |
Constructs a GLESImageData and uploads the image to GPU.
| [in] | device | The OpenGL graphics device. |
| [in] | image_id | The image identifier in the ImageFactory. |
Definition at line 62 of file GLESImage.h.
References update().
|
inline |
Deletes the GPU texture resource.
| [in] | instance | The OpenGL graphics device. |
Definition at line 70 of file GLESImage.h.
References IsValid().
Referenced by update().
|
inline |
Checks whether the image has an alpha channel.
Definition at line 132 of file GLESImage.h.
|
inline |
Checks whether the source image has been modified since last upload.
Definition at line 138 of file GLESImage.h.
References ImageFactory::modifiedTime().
|
inline |
Binds this texture to the given texture unit for shader use.
| [in] | bind_position | The texture unit index. |
| [in] | instance | The OpenGL graphics device. |
Definition at line 125 of file GLESImage.h.
|
inline |
Reloads and re-uploads the image texture to GPU.
| [in] | instance | The OpenGL graphics device. |
Definition at line 78 of file GLESImage.h.
References cast(), ImageFactory::DefaultFactory(), destroy(), ImageFactory::getUncompressed(), ImageFactory::hasImage(), and ImageFactory::Resize().
Referenced by GLESImageData().