30 #ifndef _CEGUITexture_h_
31 #define _CEGUITexture_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/String.h"
35 #include "CEGUI/Size.h"
36 #include "CEGUI/Vector.h"
37 #include "CEGUI/Rect.h"
147 const String& resourceGroup) = 0;
167 const Sizef& buffer_size,
Definition: MemoryAllocatedObject.h:110
String class used within the GUI system.
Definition: String.h:64
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
virtual void loadFromMemory(const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format)=0
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the im...
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
@ PF_RGBA_DXT1
S3 DXT1 texture compression (RGBA).
Definition: Texture.h:78
@ PF_RGBA_DXT3
S3 DXT1 texture compression (RGBA).
Definition: Texture.h:80
@ PF_RGB_DXT1
S3 DXT1 texture compression (RGB).
Definition: Texture.h:76
@ PF_RGB_565
Each pixel is 2 bytes. RGB in that order.
Definition: Texture.h:70
@ PF_PVRTC2
PVR texture compression. Each pixel is 2 bits.
Definition: Texture.h:72
@ PF_RGB
Each pixel is 3 bytes. RGB in that order.
Definition: Texture.h:64
@ PF_RGBA
Each pixel is 4 bytes. RGBA in that order.
Definition: Texture.h:66
@ PF_PVRTC4
PVR texture compression. Each pixel is 4 bits.
Definition: Texture.h:74
@ PF_RGBA_4444
Each pixel is 2 bytes. RGBA in that order.
Definition: Texture.h:68
virtual const Sizef & getOriginalDataSize() const =0
Returns the original pixel size of the data loaded into the texture.
virtual const String & getName() const =0
Returns the name given to the texture when it was created.
virtual const Vector2f & getTexelScaling() const =0
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
virtual void blitToMemory(void *targetData)=0
Performs a complete blit from the texture surface to memory.
virtual const Sizef & getSize() const =0
Returns the current pixel size of the texture.
virtual void loadFromFile(const String &filename, const String &resourceGroup)=0
Loads the specified image file into the texture. The texture is resized as required to hold the image...
virtual void blitFromMemory(const void *sourceData, const Rectf &area)=0
Performs an area memory blit to the texture.
virtual bool isPixelFormatSupported(const PixelFormat fmt) const =0
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
virtual ~Texture()
Destructor for Texture base class.
Definition: Texture.h:89
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1