GlobeEngine
DirectionalLight.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_DirectionalLight_h
10 #define GlobeEngine_DirectionalLight_h
11 
12 #include "OpenGL_Includes.h"
13 #include <string>
14 #include "Light.h"
15 
16 namespace ge {
17  class DirectionalLight : public Light
18  {
19  public:
20 
23  void clear();
24  void create(vmml::Vector3d _position, vmml::Vector3d _direction);
25  void setDirection(vmml::Vector3d _direction);
26  vmml::Vector3d getDirection();
27 
28  void bindUniformStruct(const std::shared_ptr<ge::Shader> _shader) const;
29 
30  void printInfo();
31  protected:
32  vmml::Vector3d direction;
33 
34  };
35 }
36 #endif
~DirectionalLight()
Definition: DirectionalLight.cpp:14
void clear()
Definition: DirectionalLight.cpp:19
void bindUniformStruct(const std::shared_ptr< ge::Shader > _shader) const
Definition: DirectionalLight.cpp:35
void setDirection(vmml::Vector3d _direction)
Definition: DirectionalLight.cpp:44
Definition: DirectionalLight.h:17
vmml::Vector3d getDirection()
Definition: DirectionalLight.cpp:50
Definition: Light.h:26
Definition: AvalancheTrainingSimulationEngine.h:28
vmml::Vector3d direction
Definition: DirectionalLight.h:32
void printInfo()
Definition: DirectionalLight.cpp:55
void create(vmml::Vector3d _position, vmml::Vector3d _direction)
Definition: DirectionalLight.cpp:24
DirectionalLight()
Definition: DirectionalLight.cpp:9