Crazy Eddies GUI System  0.7.0
CEGUIRenderer.h
1 /***********************************************************************
2  filename: CEGUIRenderer.h
3  created: 20/2/2004
4  author: Paul D Turner
5 
6  purpose: Defines interface for abstract Renderer class
7 *************************************************************************/
8 /***************************************************************************
9  * Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team
10  *
11  * Permission is hereby granted, free of charge, to any person obtaining
12  * a copy of this software and associated documentation files (the
13  * "Software"), to deal in the Software without restriction, including
14  * without limitation the rights to use, copy, modify, merge, publish,
15  * distribute, sublicense, and/or sell copies of the Software, and to
16  * permit persons to whom the Software is furnished to do so, subject to
17  * the following conditions:
18  *
19  * The above copyright notice and this permission notice shall be
20  * included in all copies or substantial portions of the Software.
21  *
22  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28  * OTHER DEALINGS IN THE SOFTWARE.
29  ***************************************************************************/
30 #ifndef _CEGUIRenderer_h_
31 #define _CEGUIRenderer_h_
32 
33 #include "CEGUIBase.h"
34 
35 // Start of CEGUI namespace section
36 namespace CEGUI
37 {
38 //----------------------------------------------------------------------------//
45 {
50 };
51 
52 //----------------------------------------------------------------------------//
53 
63 class CEGUIEXPORT Renderer
64 {
65 public:
76  virtual RenderingRoot& getDefaultRenderingRoot() = 0;
77 
87  virtual GeometryBuffer& createGeometryBuffer() = 0;
88 
99  virtual void destroyGeometryBuffer(const GeometryBuffer& buffer) = 0;
100 
105  virtual void destroyAllGeometryBuffers() = 0;
106 
118  virtual TextureTarget* createTextureTarget() = 0;
119 
129  virtual void destroyTextureTarget(TextureTarget* target) = 0;
130 
135  virtual void destroyAllTextureTargets() = 0;
136 
145  virtual Texture& createTexture() = 0;
146 
169  virtual Texture& createTexture(const String& filename,
170  const String& resourceGroup) = 0;
171 
189  virtual Texture& createTexture(const Size& size) = 0;
190 
199  virtual void destroyTexture(Texture& texture) = 0;
200 
205  virtual void destroyAllTextures() = 0;
206 
212  virtual void beginRendering() = 0;
213 
218  virtual void endRendering() = 0;
219 
237  virtual void setDisplaySize(const Size& size) = 0;
238 
247  virtual const Size& getDisplaySize() const = 0;
248 
257  virtual const Vector2& getDisplayDPI() const = 0;
258 
266  virtual uint getMaxTextureSize() const = 0;
267 
275  virtual const String& getIdentifierString() const = 0;
276 
278  virtual ~Renderer() {}
279 };
280 
281 } // End of CEGUI namespace section
282 
283 
284 #endif // end of guard _CEGUIRenderer_h_