OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
overlayrendering.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 OVERLAYRENDERING_H
19 #define OVERLAYRENDERING_H
20 
21 #include "index.h"
22 #include "rendersystem.h"
23 #include "cameramanager.h"
24 #include "overlaymanager.h"
25 #include "meshmanager.h"
26 #include "positionmanager.h"
27 #include "shadermanager.h"
28 #include "elementmanager.h"
29 #include "embedded_resource.h"
30 
31 namespace Engine
32 {
37  {
38  public:
39  explicit OverlayRendering( const std::string & system_name );
40  virtual ~OverlayRendering(){}
41 
42  void initialize( OpenPolygonDisplay * display ) final override;
43 
44  void Resize(void) final override;
45 
46  void RenderFrame(void) final override;
47 
48  protected:
49 
50  void Render2DScene(void);
51 
52  void Render2DBackground(void);
53 
54  private:
55 
56  bool m_resize_flag;
57 
58  OverlayManager * m_overlay_mng;
59  IShader * m_bg_shader;
60  Mesh * m_bg_mesh;
61  Position * m_bg_position;
62 
63  DrawEvent m_draw_event_elements;
64  };
65 }
66 
67 #endif // OVERLAYRENDERING_H
The OverlayRendering - Render System class.
Definition: overlayrendering.h:36
Definition: element.h:23
The IShader - abstract / interface class.
Definition: IShader.h:30
The DrawEvent - event class.
Definition: drawevent.h:31
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