OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
shadowevent.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 SHADOWEVENT_H
19 #define SHADOWEVENT_H
20 
21 #include "index.h"
22 #include "Interface/IShader.h"
23 #include "light.h"
24 
25 namespace Engine
26 {
31  {
32  public:
33  ShadowEvent();
34  ~ShadowEvent() = default;
35 
36  void setProjection( glm::mat4 projection_matrix );
37  void setMatrix( glm::mat4 shadow_view_matrix );
38  void setShadowShader( IShader * shader );
39 
40  IShader * getShadowShader(void) const;
41  glm::mat4 getViewMatrix(void) const;
42  glm::mat4 getProjection(void) const;
43 
44 
45  private:
46 
47  IShader * m_shadow_shader;
48  glm::mat4 m_view_matrix;
49  glm::mat4 m_projection;
50  };
51 
52 }
53 
54 #endif // SHADOWEVENT_H
Definition: element.h:23
The IShader - abstract / interface class.
Definition: IShader.h:30
The ShadowEvent - Event class.
Definition: shadowevent.h:30