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();
86 Ogre::TexturePtr d_texture;
99 #endif // end of guard _CEGUIOgreTexture_h_
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: CEGUITexture.h:58
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
Vector2 d_texelScaling
cached pixel to texel mapping scale values.
Definition: CEGUIOgreTexture.h:94
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: CEGUIOgreTexture.h:84
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
bool d_isLinked
specifies whether d_texture was created externally (not owned by us).
Definition: CEGUIOgreTexture.h:88
Size d_size
Size of the texture.
Definition: CEGUIOgreTexture.h:90
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
Implementation of the CEGUI::Texture class for the Ogre engine.
Definition: CEGUIOgreTexture.h:39
Texture & createTexture()
Create a 'null' Texture object.
Size d_dataSize
original pixel of size data loaded into texture
Definition: CEGUIOgreTexture.h:92
String class used within the GUI system.
Definition: CEGUIString.h:57