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;
53 void setIrrlichtTexture(irr::video::ITexture* tex);
56 irr::video::ITexture* getIrrlichtTexture()
const;
65 void setOriginalDataSize(
const Sizef& sz);
68 static std::string getUniqueName();
71 const String& getName()
const;
72 const Sizef& getSize()
const;
73 const Sizef& getOriginalDataSize()
const;
74 const Vector2f& getTexelScaling()
const;
75 void loadFromFile(
const String& filename,
const String& resourceGroup);
76 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
78 void blitFromMemory(
const void* sourceData,
const Rectf& area);
79 void blitToMemory(
void* targetData);
80 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
84 friend Texture& IrrlichtRenderer::createTexture(
const String&);
88 friend void IrrlichtRenderer::destroyTexture(
Texture&);
89 friend void IrrlichtRenderer::destroyTexture(
const String&);
97 const String& resourceGroup);
105 void createIrrlichtTexture(
const Sizef& sz);
108 void freeIrrlichtTexture();
111 void updateCachedScaleValues();
133 #endif // end of guard _CEGUIIrrlichtTexture_h_
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:61
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/Irrlicht/Texture.h:122
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Definition: RendererModules/Irrlicht/ImageCodec.h:34
IrrlichtRenderer & d_owner
reference to the IrrlichtRenderer that created this texture
Definition: RendererModules/Irrlicht/Texture.h:126
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/Irrlicht/Texture.h:124
irr::video::IVideoDriver & d_driver
Irrlicht video driver we're to use.
Definition: RendererModules/Irrlicht/Texture.h:116
irr::video::ITexture * d_texture
ptr to underlying irrlicht texture.
Definition: RendererModules/Irrlicht/Texture.h:118
Implementation of the CEGUI::Texture class for the Irrlicht engine.
Definition: RendererModules/Irrlicht/Texture.h:49
Sizef d_size
Size of the texture.
Definition: RendererModules/Irrlicht/Texture.h:120
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: RendererModules/Irrlicht/Texture.h:114
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
CEGUI::Renderer implementation for the Irrlicht engine.
Definition: RendererModules/Irrlicht/Renderer.h:71
const String d_name
name given when texture was created.
Definition: RendererModules/Irrlicht/Texture.h:128
String class used within the GUI system.
Definition: String.h:62