28 #ifndef _CEGUIOgreTexture_h_
29 #define _CEGUIOgreTexture_h_
31 #include "../../CEGUITexture.h"
32 #include "CEGUIOgreRenderer.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 Size& getSize()
const;
52 const Size& getOriginalDataSize()
const;
53 const Vector2& getTexelScaling()
const;
54 void loadFromFile(
const String& filename,
const String& resourceGroup);
55 void loadFromMemory(
const void* buffer,
const Size& buffer_size,
57 void saveToMemory(
void* buffer);
74 OgreTexture(Ogre::TexturePtr& tex,
bool take_ownership);
79 void freeOgreTexture();
81 void updateCachedScaleValues();
84 static uint32 d_textureNumber;
86 Ogre::TexturePtr d_texture;
99 #endif // end of guard _CEGUIOgreTexture_h_