Crazy Eddie's GUI System
0.8.7
|
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,
223 #endif // end of guard _CEGUITexture_h_
@ PF_RGBA
Each pixel is 4 bytes. RGBA in that order.
Definition: Texture.h:66
virtual const Vector2f & getTexelScaling() const =0
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
@ PF_RGB_565
Each pixel is 2 bytes. RGB in that order.
Definition: Texture.h:70
virtual const Sizef & getOriginalDataSize() const =0
Returns the original pixel size of the data loaded into the texture.
virtual void blitToMemory(void *targetData)=0
Performs a complete blit from the texture surface to memory.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
virtual const String & getName() const =0
Returns the name given to the texture when it was created.
@ PF_PVRTC2
PVR texture compression. Each pixel is 2 bits.
Definition: Texture.h:72
Definition: MemoryAllocatedObject.h:110
@ PF_RGB
Each pixel is 3 bytes. RGB in that order.
Definition: Texture.h:64
virtual ~Texture()
Destructor for Texture base class.
Definition: Texture.h:89
@ PF_RGBA_DXT1
S3 DXT1 texture compression (RGBA).
Definition: Texture.h:78
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
@ PF_RGBA_4444
Each pixel is 2 bytes. RGBA in that order.
Definition: Texture.h:68
virtual bool isPixelFormatSupported(const PixelFormat fmt) const =0
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
@ PF_RGB_DXT1
S3 DXT1 texture compression (RGB).
Definition: Texture.h:76
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 const Sizef & getSize() const =0
Returns the current pixel size of the texture.
String class used within the GUI system.
Definition: String.h:64
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
@ PF_RGBA_DXT3
S3 DXT1 texture compression (RGBA).
Definition: Texture.h:80
virtual void blitFromMemory(const void *sourceData, const Rectf &area)=0
Performs an area memory blit to the texture.
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...
@ PF_PVRTC4
PVR texture compression. Each pixel is 4 bits.
Definition: Texture.h:74