Phongo Clap RT  1.0
Simple Raytracing Renderer
Public Member Functions | List of all members
PointLight Class Reference

Point light constructor. More...

#include <Light.h>

Inheritance diagram for PointLight:
Inheritance graph
Collaboration diagram for PointLight:
Collaboration graph

Public Member Functions

 PointLight (ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff)
 
 ~PointLight ()
 
- Public Member Functions inherited from Light
 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...
 

Additional Inherited Members

- Protected Attributes inherited from Light
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...
 

Detailed Description

Point light constructor.

Parameters
[in]_posLight's position.
[in]_diff_colDiffuse colour emitted by the light.
[in]_spec_colSpecular colour emmited by the light.
[in]_diff_intSets the intensity of the diffuse colour emission.
[in]_spec_intSets the intensity of the specular emission.
[in]_falloffControlls how the light decays.

Definition at line 82 of file Light.h.

Constructor & Destructor Documentation

PointLight::PointLight ( ngl::Vec3  _pos,
ngl::Colour  _diff_col,
ngl::Colour  _spec_col,
float  _diff_int,
float  _spec_int,
float  _falloff 
)
inline

Definition at line 85 of file Light.h.

90  : Light(_pos, _diff_col, _spec_col, _diff_int, _spec_int, _falloff) {}
Light(ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff)
Light constructor.
Definition: Light.h:30
PointLight::~PointLight ( )
inline

Definition at line 91 of file Light.h.

91 {}

The documentation for this class was generated from the following file: