Crazy Eddies GUI System  0.7.8
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 
60 {
67 };
68 
69 //----------------------------------------------------------------------------//
70 
80 class CEGUIEXPORT Renderer
81 {
82 public:
93  virtual RenderingRoot& getDefaultRenderingRoot() = 0;
94 
104  virtual GeometryBuffer& createGeometryBuffer() = 0;
105 
116  virtual void destroyGeometryBuffer(const GeometryBuffer& buffer) = 0;
117 
122  virtual void destroyAllGeometryBuffers() = 0;
123 
135  virtual TextureTarget* createTextureTarget() = 0;
136 
146  virtual void destroyTextureTarget(TextureTarget* target) = 0;
147 
152  virtual void destroyAllTextureTargets() = 0;
153 
162  virtual Texture& createTexture() = 0;
163 
186  virtual Texture& createTexture(const String& filename,
187  const String& resourceGroup) = 0;
188 
206  virtual Texture& createTexture(const Size& size) = 0;
207 
216  virtual void destroyTexture(Texture& texture) = 0;
217 
222  virtual void destroyAllTextures() = 0;
223 
229  virtual void beginRendering() = 0;
230 
235  virtual void endRendering() = 0;
236 
254  virtual void setDisplaySize(const Size& size) = 0;
255 
264  virtual const Size& getDisplaySize() const = 0;
265 
274  virtual const Vector2& getDisplayDPI() const = 0;
275 
283  virtual uint getMaxTextureSize() const = 0;
284 
292  virtual const String& getIdentifierString() const = 0;
293 
295  virtual ~Renderer() {}
296 };
297 
298 } // End of CEGUI namespace section
299 
300 
301 #endif // end of guard _CEGUIRenderer_h_