Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIIrrlichtTexture_h_
28 #define _CEGUIIrrlichtTexture_h_
30 #include "CEGUI/RendererModules/Irrlicht/RendererDef.h"
31 #include "../../Texture.h"
32 #include "CEGUI/RendererModules/Irrlicht/Renderer.h"
46 class IrrlichtRenderer;
97 const String& resourceGroup);
133 #endif // end of guard _CEGUIIrrlichtTexture_h_
Sizef d_size
Size of the texture.
Definition: RendererModules/Irrlicht/Texture.h:120
void setOriginalDataSize(const Sizef &sz)
Sets what the texture should consider as the original data size.
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
const String d_name
name given when texture was created.
Definition: RendererModules/Irrlicht/Texture.h:128
void createIrrlichtTexture(const Sizef &sz)
create the underlying Irrlicht texture with the given size
IrrlichtTexture(IrrlichtRenderer &owner, irr::video::IVideoDriver &driver, const String &name)
Construct a basic texture.
void freeIrrlichtTexture()
release the underlying irrlicht texture currently used.
IrrlichtTexture(IrrlichtRenderer &owner, irr::video::IVideoDriver &driver, const String &name, const String &filename, const String &resourceGroup)
Construct a texture from the specified file.
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: RendererModules/Irrlicht/Texture.h:114
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
void setIrrlichtTexture(irr::video::ITexture *tex)
set the underlying Irrlicht texture represented by this Texture.
const String & getName() const
Returns the name given to the texture when it was created.
irr::video::IVideoDriver & d_driver
Irrlicht video driver we're to use.
Definition: RendererModules/Irrlicht/Texture.h:116
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
IrrlichtTexture(IrrlichtRenderer &owner, irr::video::IVideoDriver &driver, const String &name, const Sizef &size)
Construct a texture with the given size.
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.
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...
irr::video::ITexture * d_texture
ptr to underlying irrlicht texture.
Definition: RendererModules/Irrlicht/Texture.h:118
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/Irrlicht/Texture.h:122
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...
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
~IrrlichtTexture()
destructor.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/Irrlicht/Texture.h:124
irr::video::ITexture * getIrrlichtTexture() const
return a pointer to the Irrlicht texture represented by this Texture.
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: RendererModules/Irrlicht/Texture.h:50
static std::string getUniqueName()
return a std::string containing a unique name.
Texture & createTexture(const String &name)
Create a 'null' Texture object.
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
IrrlichtRenderer & d_owner
reference to the IrrlichtRenderer that created this texture
Definition: RendererModules/Irrlicht/Texture.h:126
CEGUI::Renderer implementation for the Irrlicht engine.
Definition: RendererModules/Irrlicht/Renderer.h:72
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.