27 #ifndef _CEGUIOgreTexture_h_
28 #define _CEGUIOgreTexture_h_
30 #include "../../Texture.h"
31 #include "CEGUI/RendererModules/Ogre/Renderer.h"
32 #include <OgreTexture.h>
42 void setOgreTexture(Ogre::TexturePtr texture,
bool take_ownership =
false);
44 Ogre::TexturePtr getOgreTexture()
const;
47 static Ogre::String getUniqueName();
50 const String& getName()
const;
51 const Sizef& getSize()
const;
52 const Sizef& getOriginalDataSize()
const;
53 const Vector2f& getTexelScaling()
const;
54 void loadFromFile(
const String& filename,
const String& resourceGroup);
55 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
57 void blitFromMemory(
const void* sourceData,
const Rectf& area);
58 void blitToMemory(
void* targetData);
59 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
81 const String& resourceGroup);
91 void createEmptyOgreTexture();
93 void freeOgreTexture();
95 void updateCachedScaleValues();
98 static uint32 d_textureNumber;
100 Ogre::TexturePtr d_texture;
115 #endif // end of guard _CEGUIOgreTexture_h_