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;
60 class NULL_GUIRENDERER_API NullRenderer :
public Renderer
80 static NullRenderer& bootstrapSystem(
const int abi = CEGUI_VERSION_ABI);
97 static void destroySystem();
103 static NullRenderer& create(
const int abi = CEGUI_VERSION_ABI);
106 static void destroy(NullRenderer& renderer);
109 RenderTarget& getDefaultRenderTarget();
110 GeometryBuffer& createGeometryBuffer();
111 void destroyGeometryBuffer(
const GeometryBuffer& buffer);
112 void destroyAllGeometryBuffers();
113 TextureTarget* createTextureTarget();
114 void destroyTextureTarget(TextureTarget* target);
115 void destroyAllTextureTargets();
116 Texture& createTexture(
const String& name);
117 Texture& createTexture(
const String& name,
118 const String& filename,
119 const String& resourceGroup);
120 Texture& createTexture(
const String& name,
const Sizef& size);
121 void destroyTexture(Texture& texture);
122 void destroyTexture(
const String& name);
123 void destroyAllTextures();
124 Texture& getTexture(
const String& name)
const;
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();
140 virtual ~NullRenderer();
143 void throwIfNameExists(
const String& name)
const;
145 static void logTextureCreation(
const String& name);
147 static void logTextureDestruction(
const String& name);
150 static String d_rendererID;
154 Vector2f d_displayDPI;
156 RenderTarget* d_defaultTarget;
160 TextureTargetList d_textureTargets;
164 GeometryBufferList d_geometryBuffers;
171 uint d_maxTextureSize;
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: cegui/include/CEGUI/String.h:5579
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
std::vector< NullGeometryBuffer * > GeometryBufferList
container type used to hold GeometryBuffers we create.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/RendererModules/Null/Renderer.h:162
std::vector< TextureTarget * > TextureTargetList
container type used to hold TextureTargets we create.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/RendererModules/Null/Renderer.h:158
std::map< String, NullTexture *, StringFastLessCompare CEGUI_MAP_ALLOC(String, NullTexture *)> TextureMap
container type used to hold Textures we create.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/RendererModules/Null/Renderer.h:167
Implementation of the CEGUI::Texture class for no particular engine.
Definition: cegui/include/CEGUI/RendererModules/Null/Texture.h:42
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62