27#ifndef _CEGUINullRenderer_h_
28#define _CEGUINullRenderer_h_
30#include "../../Renderer.h"
31#include "../../Size.h"
32#include "../../Vector.h"
37#if (defined( __WIN32__ ) || defined( _WIN32 )) && !defined(CEGUI_STATIC)
38# ifdef CEGUINULLRENDERER_EXPORTS
39# define NULL_GUIRENDERER_API __declspec(dllexport)
41# define NULL_GUIRENDERER_API __declspec(dllimport)
44# define NULL_GUIRENDERER_API
49# pragma warning(disable : 4251)
56class NullGeometryBuffer;
136 const String& resourceGroup);
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:44
CEGUI::Renderer implementation for no particular engine.
Definition: RendererModules/Null/Renderer.h:61
GeometryBufferList d_geometryBuffers
Container used to track geometry buffers.
Definition: RendererModules/Null/Renderer.h:181
Vector2f d_displayDPI
What the renderer considers to be the current display DPI resolution.
Definition: RendererModules/Null/Renderer.h:171
uint getMaxTextureSize() const
Return the pixel size of the maximum supported texture.
bool isTexCoordSystemFlipped() const
Returns if the texture coordinate system is vertically flipped or not. The original of a texture coor...
Definition: RendererModules/Null/Renderer.h:123
static NullRenderer & bootstrapSystem(const int abi=CEGUI_VERSION_ABI)
Convenience function that creates all the necessary objects then initialises the CEGUI system with th...
static void logTextureCreation(const String &name)
helper to safely log the creation of a named texture
void destroyTexture(Texture &texture)
Destroy a Texture object that was previously created by calling the createTexture functions.
GeometryBuffer & createGeometryBuffer()
Create a new GeometryBuffer and return a reference to it. You should remove the GeometryBuffer from a...
void destroyAllGeometryBuffers()
Destroy all GeometryBuffer objects created by this Renderer.
void destroyAllTextures()
Destroy all Texture objects created by this Renderer.
const String & getIdentifierString() const
Return identification string for the renderer module.
TextureTarget * createTextureTarget()
Create a TextureTarget that can be used to cache imagery; this is a RenderTarget that does not lose i...
void destroyTexture(const String &name)
Destroy a Texture object that was previously created by calling the createTexture functions.
RenderTarget & getDefaultRenderTarget()
Returns the default RenderTarget object. The default render target is is typically one that targets t...
void destroyGeometryBuffer(const GeometryBuffer &buffer)
Destroy a GeometryBuffer that was returned when calling the createGeometryBuffer function....
Sizef d_displaySize
What the renderer considers to be the current display size.
Definition: RendererModules/Null/Renderer.h:169
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: RendererModules/Null/Renderer.h:175
Texture & createTexture(const String &name, const String &filename, const String &resourceGroup)
Create a Texture object using the given image file.
void destroyAllTextureTargets()
Destory all TextureTarget objects created by this Renderer.
void constructor_impl()
common construction things.
static void logTextureDestruction(const String &name)
helper to safely log the destruction of a named texture
const Sizef & getDisplaySize() const
Return the size of the display or host window in pixels.
uint d_maxTextureSize
What the renderer thinks the max texture size is.
Definition: RendererModules/Null/Renderer.h:188
const Vector2f & getDisplayDPI() const
Return the resolution of the display or host window in dots per inch.
RenderTarget * d_defaultTarget
The default RenderTarget.
Definition: RendererModules/Null/Renderer.h:173
Texture & createTexture(const String &name, const Sizef &size)
Create a Texture object with the given pixel dimensions as specified by size.
virtual ~NullRenderer()
destructor.
TextureTargetList d_textureTargets
Container used to track texture targets.
Definition: RendererModules/Null/Renderer.h:177
static String d_rendererID
String holding the renderer identification text.
Definition: RendererModules/Null/Renderer.h:167
void setDisplaySize(const Sizef &sz)
Set the size of the display or host window in pixels for this Renderer object.
void endRendering()
Perform any operations required to finalise rendering.
static void destroy(NullRenderer &renderer)
destory an NullRenderer object.
void beginRendering()
Perform any operations required to put the system into a state ready for rendering operations to begi...
void throwIfNameExists(const String &name) const
helper to throw exception if name is already used.
std::map< String, NullTexture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, NullTexture *)> TextureMap
container type used to hold Textures we create.
Definition: RendererModules/Null/Renderer.h:184
Texture & getTexture(const String &name) const
Return a Texture object that was previously created by calling the createTexture functions.
static void destroySystem()
Convenience function to cleanup the CEGUI system and related objects that were created by calling the...
bool isTextureDefined(const String &name) const
Return whether a texture with the given name exists.
static NullRenderer & create(const int abi=CEGUI_VERSION_ABI)
Create an NullRenderer object.
NullRenderer()
default constructor.
TextureMap d_textures
Container used to track textures.
Definition: RendererModules/Null/Renderer.h:186
std::vector< NullGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: RendererModules/Null/Renderer.h:179
Texture & createTexture(const String &name)
Create a 'null' Texture object.
void destroyTextureTarget(TextureTarget *target)
Function that cleans up TextureTarget objects created with the createTextureTarget function.
Implementation of the CEGUI::Texture class for no particular engine.
Definition: RendererModules/Null/Texture.h:43
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: RenderTarget.h:60
Abstract class defining the basic required interface for Renderer objects.
Definition: Renderer.h:84
String class used within the GUI system.
Definition: String.h:64
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: TextureTarget.h:41
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:54
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5580