OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
techniquemanager.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 TECHNIQUEMANAGER_H
19 #define TECHNIQUEMANAGER_H
20 
21 #include "index.h"
22 #include "technique.h"
23 #include "rendersystem.h"
24 #include "Technique/basiccolourtech.h"
25 #include "Technique/spotshadowtech.h"
26 
27 namespace Engine
28 {
29  using TechniqueList = std::list< Technique * >;
30 
32  {
33  public:
34 
35  enum TECH_ID
36  {
37  TECH_BASIC ,
38  TECH_NORMAL_LIGHT ,
39  TECH_SPOT_LIGHT ,
40  TECH_SPOT_SHADOW ,
41  TECH_CASCADOW_SHADOW
42  };
43 
44  explicit TechniqueManager( RenderSystem * sytem );
46 
47  virtual Technique * createTech( TECH_ID id );
48 
49  Technique * getTechniqueByName( const std::string & technique_name );
50 
51  TechniqueList getTechniqueList(void);
52 
53  void destroy( Technique * tech );
54 
55  protected:
56 
57  RenderSystem * m_system;
58 
59  TechniqueList m_techniques;
60  };
61 
62 }
63 
64 
65 
66 #endif // TECHNIQUEMANAGER_H
Definition: element.h:23
The Technique - abstract / interface class.
Definition: technique.h:34
The RenderSystem - abstract / interface class.
Definition: rendersystem.h:41
Definition: techniquemanager.h:31