OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
multirendering.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef MULTIRENDERING_H
19 #define MULTIRENDERING_H
20 
21 #include "index.h"
22 #include "rendermanager.h"
23 #include "framebuffermanager.h"
24 #include "shadermanager.h"
25 #include "positionmanager.h"
26 #include "meshmanager.h"
27 #include "overlaymanager.h"
28 
29 #include "rendersystem.h"
30 #include "Technique/basiccolourtech.h"
31 #include "embedded_resource.h"
32 
33 namespace Engine
34 {
35 
40  {
41  public:
42 
43  explicit MultiRendering( const std::string & system_name );
44  virtual ~MultiRendering() = default;
45 
46  void initialize( OpenPolygonDisplay * display ) final override;
47 
48  void RenderFrame(void) final override;
49 
50  void Resize(void) final override;
51 
52  Position * getScreenPosition(void);
53  Mesh * getScreen(void);
54 
55  private:
56 
57  void prepareScreenPosition(void);
58  void RenderFinalScene(void);
59  void RenderToScreen(void);
60 
61  bool m_resize_flag;
62 
63  OverlayManager * m_overlaymng;
64  IShader * m_render_shader;
65  Mesh * m_screen;
66  Position * m_screen_pos;
67  Technique * m_basic_tech;
68  Technique * m_spot_tech;
69  Texture * m_tech_texture_array;
70 
71  DrawEvent m_draw_event_elements;
72  };
73 }
74 
75 #endif // MULTIRENDERING_H
The Texture class.
Definition: texture.h:37
The MultiRendering - Render System class.
Definition: multirendering.h:39
Definition: element.h:23
The IShader - abstract / interface class.
Definition: IShader.h:30
The DrawEvent - event class.
Definition: drawevent.h:31
The Technique - abstract / interface class.
Definition: technique.h:34
The Mesh class.
Definition: mesh.h:32
The RenderSystem - abstract / interface class.
Definition: rendersystem.h:41
The OpenPolygonDisplay - display abstract class.
Definition: display.h:55
The OverlayManager class.
Definition: overlaymanager.h:34
The Position class.
Definition: position.h:29