Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIOpenGLESTexture_h_
28 #define _CEGUIOpenGLESTexture_h_
30 #include "CEGUI/Base.h"
31 #include "CEGUI/Renderer.h"
32 #include "CEGUI/Texture.h"
33 #include "CEGUI/RendererModules/OpenGLES/Renderer.h"
148 const GLvoid* buffer)
const;
152 const GLvoid* buffer)
const;
154 GLsizei getCompressedTextureSize(
const Sizef& pixel_size)
const;
181 #endif // end of guard _CEGUIOpenGLESTexture_h_
GLuint d_ogltexture
The OpenGLES texture we're wrapping.
Definition: RendererModules/OpenGLES/Texture.h:157
OpenGLESTexture(OpenGLESRenderer &owner, const String &name, GLuint tex, const Sizef &size)
Constructor that wraps an existing GL texture.
Sizef d_size
Size of the texture.
Definition: RendererModules/OpenGLES/Texture.h:159
Texture & createTexture(const String &name)
Create a 'null' Texture object.
void loadCompressedTextureBuffer(const Rectf &buffer_size, const GLvoid *buffer) const
load uncompressed data from buffer to GL texture.
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
GLuint getOpenGLESTexture() const
Return the internal OpenGLES texture id used by this Texture object.
const String d_name
Name of the texture given when it was created.
Definition: RendererModules/OpenGLES/Texture.h:169
GLenum d_format
Texture format.
Definition: RendererModules/OpenGLES/Texture.h:171
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
OpenGLESTexture(OpenGLESRenderer &owner, const String &name, const Sizef &size)
Constructor that creates a Texture with a given size.
void blitFromMemory(const void *sourceData, const Rectf &area)
Performs an area memory blit to the texture.
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/OpenGLES/Texture.h:163
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
const Sizef & getSize() const
Returns the current pixel size of the texture.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/OpenGLES/Texture.h:165
void initPixelFormatFields(const PixelFormat fmt)
initialise the internal format flags for the given CEGUI::PixelFormat.
uint8 * d_grabBuffer
cached image data for restoring the texture.
Definition: RendererModules/OpenGLES/Texture.h:161
void setTextureSize_impl(const Sizef &sz)
internal texture resize function (does not reset format or other fields)
GLenum d_subpixelFormat
Texture subpixel format.
Definition: RendererModules/OpenGLES/Texture.h:173
const String & getName() const
Returns the name given to the texture when it was created.
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
void setTextureSize(const Sizef &sz)
set the size of the internal texture.
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
void cleanupOpenGLESTexture()
clean up the GL texture, or the grab buffer if it had been grabbed
OpenGLESRenderer & d_owner
OpenGLESRenderer that created and owns this OpenGLESTexture.
Definition: RendererModules/OpenGLES/Texture.h:167
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 im...
bool d_isCompressed
Whether Texture format is a compressed format.
Definition: RendererModules/OpenGLES/Texture.h:175
Renderer class to interface with OpenGLES.
Definition: RendererModules/OpenGLES/Renderer.h:67
virtual ~OpenGLESTexture()
Destructor.
OpenGLESTexture(OpenGLESRenderer &owner, const String &name, const String &filename, const String &resourceGroup)
Constructor that creates a Texture from an image file.
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.
String class used within the GUI system.
Definition: String.h:64
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
void setOpenGLESTexture(GLuint tex, const Sizef &size)
set the openGL texture that this Texture is based on to the specified texture, with the specified siz...
void loadUncompressedTextureBuffer(const Rectf &buffer_size, const GLvoid *buffer) const
load uncompressed data from buffer to GL texture.
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...
Texture implementation for the OpenGLESRenderer.
Definition: RendererModules/OpenGLES/Texture.h:40
void grabTexture()
Grab the texture to a local buffer.
void generateOpenGLESTexture()
generate the OpenGLES texture and set some initial options.
void restoreTexture()
Restore the texture from the locally buffered copy previously create by a call to grabTexture.
OpenGLESTexture(OpenGLESRenderer &owner, const String &name)
Basic constructor.