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();
 
  100     Ogre::TexturePtr d_texture;
 
  115 #endif  // end of guard _CEGUIOgreTexture_h_ 
Sizef d_size
Size of the texture. 
Definition: RendererModules/Ogre/Texture.h:104
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory. 
Definition: Texture.h:61
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
Main namespace for Crazy Eddie's GUI Library. 
Definition: arch_overview.dox:1
static uint32 d_textureNumber
Counter used to provide unique texture names. 
Definition: RendererModules/Ogre/Texture.h:98
Texture & createTexture(const String &name, Ogre::TexturePtr &tex, bool take_ownership=false)
Create a CEGUI::Texture that wraps an existing Ogre texture. 
const String d_name
Name this texture was created with. 
Definition: RendererModules/Ogre/Texture.h:110
bool d_isLinked
specifies whether d_texture was created externally (not owned by us). 
Definition: RendererModules/Ogre/Texture.h:102
Abstract base class specifying the required interface for Texture objects. 
Definition: Texture.h:52
Sizef d_dataSize
original pixel of size data loaded into texture 
Definition: RendererModules/Ogre/Texture.h:106
Implementation of the CEGUI::Texture class for the Ogre engine. 
Definition: RendererModules/Ogre/Texture.h:38
Vector2f d_texelScaling
cached pixel to texel mapping scale values. 
Definition: RendererModules/Ogre/Texture.h:108
String class used within the GUI system. 
Definition: String.h:62