27 #ifndef _CEGUINullTexture_h_ 28 #define _CEGUINullTexture_h_ 30 #include "../../Texture.h" 31 #include "CEGUI/RendererModules/Null/Renderer.h" 34 # pragma warning(push) 35 # pragma warning(disable : 4251) 42 class NULL_GUIRENDERER_API NullTexture :
public Texture
46 const String& getName()
const;
47 const Sizef& getSize()
const;
48 const Sizef& getOriginalDataSize()
const;
49 const Vector2f& getTexelScaling()
const;
50 void loadFromFile(
const String& filename,
const String& resourceGroup);
51 void loadFromMemory(
const void* buffer,
const Sizef& buffer_size,
52 PixelFormat pixel_format);
53 void blitFromMemory(
const void* sourceData,
const Rectf& area);
54 void blitToMemory(
void* targetData);
55 bool isPixelFormatSupported(
const PixelFormat fmt)
const;
66 NullTexture(
const String& name);
68 NullTexture(
const String& name,
const String& filename,
69 const String& resourceGroup);
71 NullTexture(
const String& name,
const Sizef& sz);
74 virtual ~NullTexture();
76 void updateCachedScaleValues();
79 static uint32 d_textureNumber;
85 Vector2f d_texelScaling;
96 #endif // end of guard _CEGUINullTexture_h_ void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions...
Definition: Null/Renderer.cpp:223
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Texture & createTexture(const String &name)
Create a 'null' Texture object.
Definition: Null/Renderer.cpp:167