26 #ifndef _OgreCEGUITexture_h_ 27 #define _OgreCEGUITexture_h_ 29 #include <CEGUIBase.h> 30 #include <CEGUIRenderer.h> 31 #include <CEGUITexture.h> 67 virtual ushort
getWidth(
void)
const {
return d_width;}
77 virtual ushort
getHeight(
void)
const {
return d_height;}
90 virtual void loadFromFile(
const String& filename,
const String& resourceGroup);
112 virtual void loadFromMemory(
const void* buffPtr, uint buffWidth, uint buffHeight, PixelFormat pixelFormat);
135 void setOgreTextureSize(uint size);
148 void setOgreTexture(Ogre::TexturePtr& texture);
156 void freeOgreTexture(
void);
159 Ogre::String getUniqueName(
void);
179 #endif // end of guard _OgreCEGUITexture_h_ Ogre::TexturePtr getOgreTexture(void) const
Return a pointer to the internal Ogre::Texture object.
Definition: OgreCEGUITexture.h:122
virtual ushort getWidth(void) const
Returns the current pixel width of the texture.
Definition: OgreCEGUITexture.h:67
Texture class that is created by OgreCEGUIRenderer objects.
Definition: OgreCEGUITexture.h:41
virtual void destroyTexture(Texture *texture)
Definition: OgreCEGUIRenderer.cpp:406
ushort d_width
cached width of the texture
Definition: OgreCEGUITexture.h:169
static uint32 d_texturenumber
Counter used to provide unique texture names.
Definition: OgreCEGUITexture.h:165
ushort d_height
cached height of the texture
Definition: OgreCEGUITexture.h:170
bool d_isLinked
True if we are linked to a texture we did not actually create.
Definition: OgreCEGUITexture.h:172
Ogre::TexturePtr d_ogre_texture
The 'real' texture.
Definition: OgreCEGUITexture.h:167
Definition: OgreCEGUIRenderer.cpp:46
virtual ushort getHeight(void) const
Returns the current pixel height of the texture.
Definition: OgreCEGUITexture.h:77
virtual Texture * createTexture(void)
Definition: OgreCEGUIRenderer.cpp:371