28 #ifndef _CEGUIOpenGLESTexture_h_
29 #define _CEGUIOpenGLESTexture_h_
31 #include "CEGUI/Base.h"
32 #include "CEGUI/Renderer.h"
33 #include "CEGUI/Texture.h"
34 #include "CEGUI/RendererModules/OpenGLES/Renderer.h"
48 void setOpenGLESTexture(GLuint tex,
const Sizef& size);
57 GLuint getOpenGLESTexture()
const;
79 void setTextureSize(
const Sizef& sz);
95 void restoreTexture();
98 const String& getName()
const;
99 const Sizef& getSize()
const;
100 const Sizef& getOriginalDataSize()
const;
101 const Vector2f& getTexelScaling()
const;
102 void loadFromFile(
const String& filename,
const String& resourceGroup);
103 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
105 void blitFromMemory(
const void* sourceData,
const Rectf& area);
106 void blitToMemory(
void* targetData);
107 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
133 void generateOpenGLESTexture();
136 void updateCachedScaleValues();
139 void cleanupOpenGLESTexture();
145 void setTextureSize_impl(
const Sizef& sz);
148 void loadUncompressedTextureBuffer(
const Sizef& buffer_size,
149 const void* buffer)
const;
152 void loadCompressedTextureBuffer(
const Sizef& buffer_size,
153 const void* buffer)
const;
155 GLsizei getCompressedTextureSize(
const Sizef& pixel_size)
const;
182 #endif // end of guard _CEGUIOpenGLESTexture_h_