|
void | setOpenGLESTexture (GLuint tex, const Sizef &size) |
| set the openGL texture that this Texture is based on to the specified texture, with the specified size.
|
|
GLuint | getOpenGLESTexture () const |
| Return the internal OpenGLES texture id used by this Texture object. More...
|
|
void | setTextureSize (const Sizef &sz) |
| set the size of the internal texture. More...
|
|
void | grabTexture () |
| Grab the texture to a local buffer. More...
|
|
void | restoreTexture () |
| Restore the texture from the locally buffered copy previously create by a call to grabTexture.
|
|
const String & | getName () const |
| Returns the name given to the texture when it was created. More...
|
|
const Sizef & | getSize () const |
| Returns the current pixel size of the texture. More...
|
|
const Sizef & | getOriginalDataSize () const |
| Returns the original pixel size of the data loaded into the texture. More...
|
|
const Vector2f & | getTexelScaling () const |
| Returns pixel to texel scale values that should be used for converting pixel values to texture co-ords. More...
|
|
void | loadFromFile (const String &filename, const String &resourceGroup) |
| Loads the specified image file into the texture. The texture is resized as required to hold the image. More...
|
|
void | loadFromMemory (const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format) |
| Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. More...
|
|
void | blitFromMemory (const void *sourceData, const Rectf &area) |
| Performs an area memory blit to the texture. More...
|
|
void | blitToMemory (void *targetData) |
| Performs a complete blit from the texture surface to memory. More...
|
|
bool | isPixelFormatSupported (const PixelFormat fmt) const |
| Return whether the specified pixel format is supported by the system for the CEGUI::Texture implementation. More...
|
|
virtual | ~Texture () |
| Destructor for Texture base class.
|
|
virtual const String & | getName () const =0 |
| Returns the name given to the texture when it was created. More...
|
|
virtual const Sizef & | getSize () const =0 |
| Returns the current pixel size of the texture. More...
|
|
virtual const Sizef & | getOriginalDataSize () const =0 |
| Returns the original pixel size of the data loaded into the texture. More...
|
|
virtual const Vector2f & | getTexelScaling () const =0 |
| Returns pixel to texel scale values that should be used for converting pixel values to texture co-ords. More...
|
|
virtual void | loadFromFile (const String &filename, const String &resourceGroup)=0 |
| Loads the specified image file into the texture. The texture is resized as required to hold the image. More...
|
|
virtual void | loadFromMemory (const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format)=0 |
| Loads (copies) an image in memory into the texture. The texture is resized as required to hold the image. More...
|
|
virtual void | blitFromMemory (const void *sourceData, const Rectf &area)=0 |
| Performs an area memory blit to the texture. More...
|
|
virtual void | blitToMemory (void *targetData)=0 |
| Performs a complete blit from the texture surface to memory. More...
|
|
virtual bool | isPixelFormatSupported (const PixelFormat fmt) const =0 |
| Return whether the specified pixel format is supported by the system for the CEGUI::Texture implementation. More...
|
|
|
| OpenGLESTexture (OpenGLESRenderer &owner, const String &name) |
| Basic constructor.
|
|
| OpenGLESTexture (OpenGLESRenderer &owner, const String &name, const String &filename, const String &resourceGroup) |
| Constructor that creates a Texture from an image file.
|
|
| OpenGLESTexture (OpenGLESRenderer &owner, const String &name, const Sizef &size) |
| Constructor that creates a Texture with a given size.
|
|
| OpenGLESTexture (OpenGLESRenderer &owner, const String &name, GLuint tex, const Sizef &size) |
| Constructor that wraps an existing GL texture.
|
|
virtual | ~OpenGLESTexture () |
| Destructor.
|
|
void | generateOpenGLESTexture () |
| generate the OpenGLES texture and set some initial options.
|
|
void | updateCachedScaleValues () |
| updates cached scale value used to map pixels to texture co-ords.
|
|
void | cleanupOpenGLESTexture () |
| clean up the GL texture, or the grab buffer if it had been grabbed
|
|
void | initPixelFormatFields (const PixelFormat fmt) |
| initialise the internal format flags for the given CEGUI::PixelFormat.
|
|
void | setTextureSize_impl (const Sizef &sz) |
| internal texture resize function (does not reset format or other fields)
|
|
void | loadUncompressedTextureBuffer (const Rectf &buffer_size, const GLvoid *buffer) const |
| load uncompressed data from buffer to GL texture.
|
|
void | loadCompressedTextureBuffer (const Rectf &buffer_size, const GLvoid *buffer) const |
| load uncompressed data from buffer to GL texture.
|
|
GLsizei | getCompressedTextureSize (const Sizef &pixel_size) const |
|
Texture implementation for the OpenGLESRenderer.