GlobeEngine
SpotLight.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_Spotlight_h
10 #define GlobeEngine_Spotlight_h
11 
12 #include "OpenGL_Includes.h"
13 #include "DirectionalLight.h"
14 #include <string>
15 
16 
17 namespace ge {
19  {
20  public:
21 
22  SpotLight();
23  ~SpotLight();
24  void clear();
25  void create(vmml::Vector3d _position);
26  void setPosition(vmml::Vector3d _position);
27  void setTarget(vmml::Vector3d _position);
28  vmml::Vector3d getTarget();
29  void setAttenuation(vmml::Vector3d _attenuation);
30  vmml::Vector3d getAttenuation();
31  void setIntensities(vmml::Vector3f _intensities);
32  vmml::Vector3f getIntensities();
33  void setCutoff(float _cut);
34  float getCutoff();
35  void setExponent(float _exp);
36  float getExponent();
37  void update();
38  void updateDirection();
39  vmml::Vector4f getUpVector();
40  void printInfo();
41 
42  private:
43  float rot_amount;
44 
45  vmml::Vector4f light_midpos;
46  vmml::Vector3d targetPosition;
47  vmml::Vector4f light_up;
48  vmml::Vector4f light_right;
49 
50  vmml::Vector3d attenuation;
51  vmml::Vector3f intensities;
52 
53  GLfloat cutoff;
54  GLfloat exponent;
55  };
56 }
57 
58 #endif
SpotLight()
Definition: SpotLight.cpp:11
~SpotLight()
Definition: SpotLight.cpp:16
void setIntensities(vmml::Vector3f _intensities)
Definition: SpotLight.cpp:71
Definition: DirectionalLight.h:17
void setCutoff(float _cut)
Definition: SpotLight.cpp:82
Definition: SpotLight.h:18
float getExponent()
Definition: SpotLight.cpp:97
void updateDirection()
Definition: SpotLight.cpp:115
float getCutoff()
Definition: SpotLight.cpp:87
void clear()
Definition: SpotLight.cpp:21
void setPosition(vmml::Vector3d _position)
Definition: SpotLight.cpp:49
void update()
Definition: SpotLight.cpp:103
void setTarget(vmml::Vector3d _position)
Definition: SpotLight.cpp:55
void printInfo()
Definition: SpotLight.cpp:130
vmml::Vector3d getTarget()
Definition: SpotLight.cpp:125
vmml::Vector4f getUpVector()
Definition: SpotLight.cpp:120
vmml::Vector3d getAttenuation()
Definition: SpotLight.cpp:66
void setExponent(float _exp)
Definition: SpotLight.cpp:92
void create(vmml::Vector3d _position)
Definition: SpotLight.cpp:35
Definition: AvalancheTrainingSimulationEngine.h:28
void setAttenuation(vmml::Vector3d _attenuation)
Definition: SpotLight.cpp:61
vmml::Vector3f getIntensities()
Definition: SpotLight.cpp:76