Spotlight constructor.
More...
#include <Light.h>
|
| SpotLight (ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff, float _angle, ngl::Vec3 _dir) |
|
| ~SpotLight () |
|
| Light (ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff) |
| Light constructor. More...
|
|
| ~Light () |
| Destructor for the Light objects. More...
|
|
|
float | m_angle |
| The cone angle in which light is emitted. More...
|
|
ngl::Vec3 | m_dir |
| Direction or aiming vector of the spotlight. More...
|
|
|
ngl::Vec3 | m_pos |
| Light's position vector. More...
|
|
ngl::Colour | m_diff_col |
| Diffuse colour emmited by the light. More...
|
|
ngl::Colour | m_spec_col |
| Specular colour emmited by the light. More...
|
|
float | m_diff_int |
| Diffuse contribution intensity. It will multiply the diffuse colour when doing the Phong calculations More...
|
|
float | m_spec_int |
| Specular contribution intensity. Will multiply the specular colour when doing the Phong calculations More...
|
|
float | m_falloff |
| Controlls the falloff of the light. Higher values will accentuate the decay. More...
|
|
Spotlight constructor.
- Parameters
-
[in] | _pos | Light's position. |
[in] | _diff_col | Diffuse colour emitted by the light. |
[in] | _spec_col | Specular colour emmited by the light. |
[in] | _diff_int | Sets the intensity of the diffuse colour emission. |
[in] | _spec_int | Sets the intensity of the specular emission. |
[in] | _falloff | Controlls how the light decays. |
[in] | _angle | The cone angle in which light is emitted. |
[in] | _dir | Direction or aiming vector of the spotlight. |
Definition at line 106 of file Light.h.
SpotLight::SpotLight |
( |
ngl::Vec3 |
_pos, |
|
|
ngl::Colour |
_diff_col, |
|
|
ngl::Colour |
_spec_col, |
|
|
float |
_diff_int, |
|
|
float |
_spec_int, |
|
|
float |
_falloff, |
|
|
float |
_angle, |
|
|
ngl::Vec3 |
_dir |
|
) |
| |
|
inline |
Definition at line 109 of file Light.h.
116 :
Light(_pos, _diff_col,
Light(ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff)
Light constructor.
ngl::Vec3 m_dir
Direction or aiming vector of the spotlight.
float m_angle
The cone angle in which light is emitted.
SpotLight::~SpotLight |
( |
| ) |
|
|
inline |
The cone angle in which light is emitted.
Definition at line 127 of file Light.h.
ngl::Vec3 SpotLight::m_dir |
|
private |
Direction or aiming vector of the spotlight.
Definition at line 131 of file Light.h.
The documentation for this class was generated from the following file: