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;
97 const String& resourceGroup);
105 void createIrrlichtTexture(
const Sizef& sz);
108 void freeIrrlichtTexture();
111 void updateCachedScaleValues();
133 #endif // end of guard _CEGUIIrrlichtTexture_h_