28 #ifndef _CEGUIOgreTexture_h_
29 #define _CEGUIOgreTexture_h_
31 #include "../../Texture.h"
32 #include "CEGUI/RendererModules/Ogre/Renderer.h"
33 #include <OgreTexture.h>
43 void setOgreTexture(Ogre::TexturePtr texture,
bool take_ownership =
false);
45 Ogre::TexturePtr getOgreTexture()
const;
48 static Ogre::String getUniqueName();
51 const String& getName()
const;
52 const Sizef& getSize()
const;
53 const Sizef& getOriginalDataSize()
const;
54 const Vector2f& getTexelScaling()
const;
55 void loadFromFile(
const String& filename,
const String& resourceGroup);
56 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
58 void blitFromMemory(
const void* sourceData,
const Rectf& area);
59 void blitToMemory(
void* targetData);
60 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
82 const String& resourceGroup);
91 void freeOgreTexture();
93 void updateCachedScaleValues();
96 static uint32 d_textureNumber;
98 Ogre::TexturePtr d_texture;
113 #endif // end of guard _CEGUIOgreTexture_h_