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
48 # pragma warning(push)
49 # pragma warning(disable : 4251)
56 class NullGeometryBuffer;
80 static NullRenderer& bootstrapSystem(
const int abi = CEGUI_VERSION_ABI);
97 static void destroySystem();
103 static NullRenderer& create(
const int abi = CEGUI_VERSION_ABI);
112 void destroyAllGeometryBuffers();
115 void destroyAllTextureTargets();
119 const String& resourceGroup);
121 void destroyTexture(
Texture& texture);
122 void destroyTexture(
const String& name);
123 void destroyAllTextures();
125 bool isTextureDefined(
const String& name)
const;
126 void beginRendering();
128 void setDisplaySize(
const Sizef& sz);
129 const Sizef& getDisplaySize()
const;
130 const Vector2f& getDisplayDPI()
const;
131 uint getMaxTextureSize()
const;
132 const String& getIdentifierString()
const;
138 void constructor_impl();
143 void throwIfNameExists(
const String& name)
const;
145 static void logTextureCreation(
const String& name);
147 static void logTextureDestruction(
const String& name);
177 #if defined(_MSC_VER)
178 # pragma warning(pop)
181 #endif // end of guard _CEGUINullRenderer_h_
Functor that can be used as comparator in a std::map with String keys. It's faster than using the def...
Definition: String.h:5579
std::vector< NullGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: RendererModules/Null/Renderer.h:162
TextureMap d_textures
Container used to track textures.
Definition: RendererModules/Null/Renderer.h:169
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
Specialisation of RenderTarget interface that should be used as the base class for RenderTargets that...
Definition: TextureTarget.h:40
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: RendererModules/Null/Renderer.h:158
Vector2f d_displayDPI
What the renderer considers to be the current display DPI resolution.
Definition: RendererModules/Null/Renderer.h:154
GeometryBufferList d_geometryBuffers
Container used to track geometry buffers.
Definition: RendererModules/Null/Renderer.h:164
TextureTargetList d_textureTargets
Container used to track texture targets.
Definition: RendererModules/Null/Renderer.h:160
Abstract base class specifying the required interface for Texture objects.
Definition: Texture.h:52
static String d_rendererID
String holding the renderer identification text.
Definition: RendererModules/Null/Renderer.h:150
CEGUI::Renderer implementation for no particular engine.
Definition: RendererModules/Null/Renderer.h:60
Abstract class defining the basic required interface for Renderer objects.
Definition: Renderer.h:82
uint d_maxTextureSize
What the renderer thinks the max texture size is.
Definition: RendererModules/Null/Renderer.h:171
std::map< String, NullTexture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, NullTexture *)> TextureMap
container type used to hold Textures we create.
Definition: RendererModules/Null/Renderer.h:167
Defines interface to some surface that can be rendered to. Concrete instances of objects that impleme...
Definition: RenderTarget.h:57
Sizef d_displaySize
What the renderer considers to be the current display size.
Definition: RendererModules/Null/Renderer.h:152
Implementation of the CEGUI::Texture class for no particular engine.
Definition: RendererModules/Null/Texture.h:42
String class used within the GUI system.
Definition: String.h:62
RenderTarget * d_defaultTarget
The default RenderTarget.
Definition: RendererModules/Null/Renderer.h:156