OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
spotshadowtech.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 SPOTSHADOWTECH_H
19 #define SPOTSHADOWTECH_H
20 
21 #include "index.h"
22 #include "rendermanager.h"
23 #include "cameramanager.h"
24 #include "lightmanager.h"
25 #include "shadermanager.h"
26 
27 
28 #include "framebuffermanager.h"
29 #include "GLTechnique.h"
30 
31 namespace Engine
32 {
33 
37  class SpotShadowTech : public GLTechnique
38  {
39  public:
40  explicit SpotShadowTech(const string &tech_name);
41  ~SpotShadowTech() = default;
42 
43  void Create(void);
44  void Prepare(void);
45  void Update(void);
46  void Render( Texture * basic );
47 
48  private:
49 
50  glm::mat4 m_projection;
51  glm::mat4 m_ortho;
52 
53  OpenPolygonDisplay * m_display;
54  FrameBuffer * m_depth_fbo;
55  IShader * m_basic_shadow;
56  IShader * m_shadow_mapping;
57 
58 
59  };
60 }
61 #endif // SPOTSHADOWTECH_H
The Texture class.
Definition: texture.h:37
Definition: element.h:23
The GLTechnique - abstract class.
Definition: GLTechnique.h:13
The IShader - abstract / interface class.
Definition: IShader.h:30
The SpotShadowTech - Technique class.
Definition: spotshadowtech.h:37
The OpenPolygonDisplay - display abstract class.
Definition: display.h:55
The FrameBuffer class.
Definition: framebuffer.h:31