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