OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
lightmanager.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 LIGHTMANAGER_H
19 #define LIGHTMANAGER_H
20 
21 #include "index.h"
22 #include "light.h"
23 
24 namespace Engine
25 {
26 
27  /* List of Lights */
28  using Lights = std::list< Light * >;
29  using SpotLights = std::list< SpotLight *>;
30 
40  {
41 
42  private:
43 
44  static LightManager * ptrInstance;
45  LightManager();
46  LightManager(const LightManager & ){}
47  void operator =( const LightManager &){}
48 
49  public:
50 
51  void setBias_Test( float value );
52  float getBias_Test(void);
53 
59  static LightManager * getSingletonPtr(void);
60 
67  Light * createLight(const string & light_name );
68 
69  SpotLight * createSpotLight( const string & light_name );
70 
76  void remove(const string & light_name );
77 
84  Light * getLight( const std::string & light_name );
85  SpotLight * getSpotLight( const std::string & spotlight_name );
86 
92  Lights getLights(void);
93 
98  SpotLights getSpotLights(void);
99 
100  private:
101 
102  Lights mLights;
103  SpotLights mSpotLights;
104 
105  float m_bias_test;
106 
107  };
108 
109 }
110 #endif // LIGHTMANAGER_H
Definition: element.h:23
The LightManager class.
Definition: lightmanager.h:39
The SpotLight class.
Definition: light.h:120
Light * getLight(const std::string &light_name)
getLight
Definition: LightManager.cpp:74
Lights getLights(void)
getLights
Definition: LightManager.cpp:101
SpotLights getSpotLights(void)
getSpotLights
Definition: LightManager.cpp:96
static LightManager * getSingletonPtr(void)
getSingletonPtr
Definition: LightManager.cpp:26
The Light class.
Definition: light.h:31
Light * createLight(const string &light_name)
createLight
Definition: LightManager.cpp:46