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" 
   47     void setOpenGLESTexture(GLuint tex, 
const Sizef& size);
 
   56     GLuint getOpenGLESTexture() 
const;
 
   78     void setTextureSize(
const Sizef& sz);
 
   94     void restoreTexture();
 
   97     const String& getName() 
const;
 
   98     const Sizef& getSize() 
const;
 
   99     const Sizef& getOriginalDataSize() 
const;
 
  100     const Vector2f& getTexelScaling() 
const;
 
  101     void loadFromFile(
const String& filename, 
const String& resourceGroup);
 
  102     void loadFromMemory(
const void* buffer, 
const Sizef& buffer_size,
 
  104     void blitFromMemory(
const void* sourceData, 
const Rectf& area);
 
  105     void blitToMemory(
void* targetData);
 
  106     bool isPixelFormatSupported(
const PixelFormat fmt) 
const;
 
  132     void generateOpenGLESTexture();
 
  135     void updateCachedScaleValues();
 
  138     void cleanupOpenGLESTexture();
 
  144     void setTextureSize_impl(
const Sizef& sz);
 
  147     void loadUncompressedTextureBuffer(
const Rectf& buffer_size,
 
  148                                        const GLvoid* buffer) 
const;
 
  151     void loadCompressedTextureBuffer(
const Rectf& buffer_size,
 
  152                                      const GLvoid* buffer) 
const;
 
  154     GLsizei getCompressedTextureSize(
const Sizef& pixel_size) 
const;
 
  181 #endif // end of guard _CEGUIOpenGLESTexture_h_ 
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
GLenum d_format
Texture format. 
Definition: RendererModules/OpenGLES/Texture.h:171
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory. 
Definition: Texture.h:61
Main namespace for Crazy Eddie's GUI Library. 
Definition: arch_overview.dox:1
Renderer class to interface with OpenGLES. 
Definition: RendererModules/OpenGLES/Renderer.h:66
Sizef d_dataSize
original pixel of size data loaded into texture 
Definition: RendererModules/OpenGLES/Texture.h:163
bool d_isCompressed
Whether Texture format is a compressed format. 
Definition: RendererModules/OpenGLES/Texture.h:175
Vector2f d_texelScaling
cached pixel to texel mapping scale values. 
Definition: RendererModules/OpenGLES/Texture.h:165
Abstract base class specifying the required interface for Texture objects. 
Definition: Texture.h:52
Texture & createTexture(const String &name)
Create a 'null' Texture object. 
uint8 * d_grabBuffer
cached image data for restoring the texture. 
Definition: RendererModules/OpenGLES/Texture.h:161
Sizef d_size
Size of the texture. 
Definition: RendererModules/OpenGLES/Texture.h:159
GLuint d_ogltexture
The OpenGLES texture we're wrapping. 
Definition: RendererModules/OpenGLES/Texture.h:157
Texture implementation for the OpenGLESRenderer. 
Definition: RendererModules/OpenGLES/Texture.h:39
const String d_name
Name of the texture given when it was created. 
Definition: RendererModules/OpenGLES/Texture.h:169
OpenGLESRenderer & d_owner
OpenGLESRenderer that created and owns this OpenGLESTexture. 
Definition: RendererModules/OpenGLES/Texture.h:167
GLenum d_subpixelFormat
Texture subpixel format. 
Definition: RendererModules/OpenGLES/Texture.h:173
String class used within the GUI system. 
Definition: String.h:62