Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIDirectFBTexture_h_
28 #define _CEGUIDirectFBTexture_h_
30 #include "../../Texture.h"
31 #include "CEGUI/RendererModules/DirectFB/Renderer.h"
94 #endif // end of guard _CEGUIDirectFBTexture_h_
Texture & createTexture(const CEGUI::String &name)
Create a 'null' Texture object.
void loadFromMemory(const void *buffer, const Sizef &buffer_size, PixelFormat pixel_format)
Loads (copies) an image in memory into the texture. The texture is resized as required to hold the im...
DirectFBTexture(IDirectFB &directfb, const String &name, const Sizef &size)
Construct texture with given size.
void cleanupDirectFBTexture()
clean up the internal texture.
IDirectFBSurface * d_texture
surface representing the texture.
Definition: RendererModules/DirectFB/Texture.h:81
DirectFBTexture(IDirectFB &directfb, const String &name, const String &filename, const String &resourceGroup)
Construct texture from file.
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
Implementation of CEGUI::Texture interface using DirectFB.
Definition: RendererModules/DirectFB/Texture.h:39
IDirectFB & d_directfb
DirectFB interface we were given when constructed.
Definition: RendererModules/DirectFB/Texture.h:79
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
void loadFromFile(const String &filename, const String &resourceGroup)
Loads the specified image file into the texture. The texture is resized as required to hold the image...
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
DirectFBTexture(IDirectFB &directfb, const String &name)
Basic constructor.
const Sizef & getSize() const
Returns the current pixel size of the texture.
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
~DirectFBTexture()
Destructor.
const String d_name
The name given for this texture.
Definition: RendererModules/DirectFB/Texture.h:89
Sizef d_size
Size of the texture.
Definition: RendererModules/DirectFB/Texture.h:83
IDirectFBSurface * getDirectFBSurface() const
Return a pointer to the IDirectFBSurface this texture represents.
String class used within the GUI system.
Definition: String.h:64
const String & getName() const
Returns the name given to the texture when it was created.
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/DirectFB/Texture.h:87
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
void blitFromMemory(const void *sourceData, const Rectf &area)
Performs an area memory blit to the texture.
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/DirectFB/Texture.h:85