28 #ifndef _CEGUIIrrlichtTexture_h_
29 #define _CEGUIIrrlichtTexture_h_
31 #include "CEGUI/RendererModules/Irrlicht/RendererDef.h"
32 #include "../../Texture.h"
33 #include "CEGUI/RendererModules/Irrlicht/Renderer.h"
47 class IrrlichtRenderer;
54 void setIrrlichtTexture(irr::video::ITexture* tex);
57 irr::video::ITexture* getIrrlichtTexture()
const;
66 void setOriginalDataSize(
const Sizef& sz);
69 static std::string getUniqueName();
72 const String& getName()
const;
73 const Sizef& getSize()
const;
74 const Sizef& getOriginalDataSize()
const;
75 const Vector2f& getTexelScaling()
const;
76 void loadFromFile(
const String& filename,
const String& resourceGroup);
77 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
79 void blitFromMemory(
const void* sourceData,
const Rectf& area);
80 void blitToMemory(
void* targetData);
81 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
98 const String& resourceGroup);
106 void createIrrlichtTexture(
const Sizef& sz);
109 void freeIrrlichtTexture();
112 void updateCachedScaleValues();
134 #endif // end of guard _CEGUIIrrlichtTexture_h_