27#ifndef _CEGUINullTexture_h_
28#define _CEGUINullTexture_h_
30#include "../../Texture.h"
31#include "CEGUI/RendererModules/Null/Renderer.h"
35# pragma warning(disable : 4251)
69 const String& resourceGroup);
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.
Texture & createTexture(const String &name)
Create a 'null' Texture object.
Implementation of the CEGUI::Texture class for no particular engine.
Definition: RendererModules/Null/Texture.h:43
Sizef d_size
Size of the texture.
Definition: RendererModules/Null/Texture.h:81
static uint32 d_textureNumber
Counter used to provide unique texture names.
Definition: RendererModules/Null/Texture.h:79
void updateCachedScaleValues()
updates cached scale value used to map pixels to texture co-ords.
Vector2f d_texelScaling
cached pixel to texel mapping scale values.
Definition: RendererModules/Null/Texture.h:85
NullTexture(const String &name)
standard constructor
NullTexture(const String &name, const String &filename, const String &resourceGroup)
construct texture via an image file.
NullTexture(const String &name, const Sizef &sz)
construct texture with a specified initial size.
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...
const String & getName() const
Returns the name given to the texture when it was created.
const Sizef & getSize() const
Returns the current pixel size of the texture.
const Vector2f & getTexelScaling() const
Returns pixel to texel scale values that should be used for converting pixel values to texture co-ord...
const String d_name
Name this texture was created with.
Definition: RendererModules/Null/Texture.h:87
void blitFromMemory(const void *sourceData, const Rectf &area)
Performs an area memory blit to the texture.
const Sizef & getOriginalDataSize() const
Returns the original pixel size of the data loaded into the texture.
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...
Sizef d_dataSize
original pixel of size data loaded into texture
Definition: RendererModules/Null/Texture.h:83
virtual ~NullTexture()
destructor.
bool isPixelFormatSupported(const PixelFormat fmt) const
Return whether the specified pixel format is supported by the system for the CEGUI::Texture implement...
void blitToMemory(void *targetData)
Performs a complete blit from the texture surface to memory.
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
PixelFormat
Enumerated type containing the supported pixel formats that can be passed to loadFromMemory.
Definition: Texture.h:62
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1