Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIOgreTexture_h_
28 #define _CEGUIOgreTexture_h_
30 #include "../../Texture.h"
31 #include "CEGUI/RendererModules/Ogre/Renderer.h"
32 #include <OgreTexture.h>
81 const String& resourceGroup);
100 Ogre::TexturePtr d_texture;
115 #endif // end of guard _CEGUIOgreTexture_h_
void freeOgreTexture()
release the underlying Ogre texture.
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/Ogre/Texture.h:106
static Ogre::PixelFormat toOgrePixelFormat(const Texture::PixelFormat fmt)
convert CEGUI::Texture::PixelFormat to equivalent Ogre::PixelFormat
void blitFromMemory(const void *sourceData, const Rectf &area)
Performs an area memory blit to the texture.
const Sizef & getSize() const
Returns the current pixel size of the texture.
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
void loadFromMemory(const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format)
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the im...
OgreTexture(const String &name, const Sizef &sz)
construct texture with a specified initial size.
void loadFromFile(const String &filename, const String &resourceGroup)
Loads the specified image file into the texture. The texture is resized as required to hold the image...
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
void createEmptyOgreTexture()
construct an empty texture
void setOgreTexture(Ogre::TexturePtr texture, bool take_ownership=false)
Set the underlying Ogre texture.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
OgreTexture(const String &name, const String &filename, const String &resourceGroup)
construct texture via an image file.
Sizef d_size
Size of the texture.
Definition: RendererModules/Ogre/Texture.h:104
Texture & createTexture(const String &name, Ogre::TexturePtr &tex, bool take_ownership=false)
Create a CEGUI::Texture that wraps an existing Ogre texture.
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/Ogre/Texture.h:108
OgreTexture(const String &name, Ogre::TexturePtr &tex, bool take_ownership)
construct texture from existing Ogre texture.
Ogre::TexturePtr getOgreTexture() const
Return Ogre::TexturePtr for the underlying Ogre texture.
const String d_name
Name this texture was created with.
Definition: RendererModules/Ogre/Texture.h:110
OgreTexture(const String &name)
standard constructor
static Texture::PixelFormat fromOgrePixelFormat(const Ogre::PixelFormat fmt)
convert Ogre::PixelFormat to equivalent CEGUI::Texture::PixelFormat
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
const String & getName() const
Returns the name given to the texture when it was created.
virtual ~OgreTexture()
destructor.
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
static Ogre::String getUniqueName()
return a Ogre::string containing a unique name.
String class used within the GUI system.
Definition: String.h:64
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.
bool d_isLinked
specifies whether d_texture was created externally (not owned by us).
Definition: RendererModules/Ogre/Texture.h:102
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: RendererModules/Ogre/Texture.h:98
Implementation of the CEGUI::Texture class for the Ogre engine.
Definition: RendererModules/Ogre/Texture.h:39