28 #ifndef _CEGUIIrrlichtTexture_h_
29 #define _CEGUIIrrlichtTexture_h_
31 #include "CEGUIIrrlichtRendererDef.h"
32 #include "../../CEGUITexture.h"
33 #include "CEGUIIrrlichtRenderer.h"
47 class IrrlichtRenderer;
54 void setIrrlichtTexture(irr::video::ITexture* tex);
57 irr::video::ITexture* getIrrlichtTexture()
const;
66 void setOriginalDataSize(
const Size& sz);
69 static std::string getUniqueName();
72 const Size& getSize()
const;
73 const Size& getOriginalDataSize()
const;
74 const Vector2& getTexelScaling()
const;
75 void loadFromFile(
const String& filename,
const String& resourceGroup);
76 void loadFromMemory(
const void* buffer,
const Size& buffer_size,
78 void saveToMemory(
void* buffer);
100 void createIrrlichtTexture(
const Size& sz);
103 void freeIrrlichtTexture();
106 void updateCachedScaleValues();
126 #endif // end of guard _CEGUIIrrlichtTexture_h_
Size d_dataSize
original pixel of size data loaded into texture
Definition: CEGUIIrrlichtTexture.h:117
Class used as a two dimensional vector (aka a Point)
Definition: CEGUIVector.h:45
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: CEGUITexture.h:58
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
IrrlichtRenderer & d_owner
reference to the IrrlichtRenderer that created this texture
Definition: CEGUIIrrlichtTexture.h:121
irr::video::IVideoDriver & d_driver
Irrlicht video driver we're to use.
Definition: CEGUIIrrlichtTexture.h:111
irr::video::ITexture * d_texture
ptr to underlying irrlicht texture.
Definition: CEGUIIrrlichtTexture.h:113
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: CEGUIIrrlichtTexture.h:50
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: CEGUIIrrlichtTexture.h:109
Abstract base class specifying the required interface for Texture objects.
Definition: CEGUITexture.h:50
CEGUI::Renderer implementation for the Irrlicht engine.
Definition: CEGUIIrrlichtRenderer.h:71
Vector2 d_texelScaling
cached pixel to texel mapping scale values.
Definition: CEGUIIrrlichtTexture.h:119
Texture & createTexture()
Create a 'null' Texture object.
Size d_size
Size of the texture.
Definition: CEGUIIrrlichtTexture.h:115
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
String class used within the GUI system.
Definition: CEGUIString.h:57