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 Sizef& buffer_size,
148 const void* buffer)
const;
151 void loadCompressedTextureBuffer(
const Sizef& buffer_size,
152 const void* buffer)
const;
154 GLsizei getCompressedTextureSize(
const Sizef& pixel_size)
const;
181 #endif // end of guard _CEGUIOpenGLESTexture_h_