Basic Renderer
|
A simple point light source. More...
#include <Light.h>
Public Member Functions | |
Light () | |
Constructor loading standard values for position, color, intensity and attenuation. More... | |
Light (const vmml::Vector3f &position, const vmml::Vector3f &color) | |
Constructor loading standard values for intensity and attenuation. More... | |
Light (const vmml::Vector3f &position, const vmml::Vector3f &color, GLfloat intensity, GLfloat attenuation, GLfloat radius) | |
Constructor. More... | |
Light (const vmml::Vector3f &position, const vmml::Vector3f &diffuseColor, const vmml::Vector3f &specularColor, GLfloat intensity, GLfloat attenuation, GLfloat radius) | |
Constructor. More... | |
virtual | ~Light () |
Virtual destructor. More... | |
void | setPosition (const vmml::Vector3f &position) |
Sets the position of the light. More... | |
void | setDiffuseColor (const vmml::Vector3f &color) |
Sets the color of the light for diffuse lighting. More... | |
void | setSpecularColor (const vmml::Vector3f &color) |
Sets the color of the light for specular lighting. More... | |
void | setIntensity (GLfloat intensity) |
Sets the intensity of the light. More... | |
void | setAttenuation (GLfloat attenuation) |
Sets the attenuation of the light. More... | |
void | setRadius (GLfloat radius) |
Sets the radius of the light. More... | |
const vmml::Vector4f & | getPosition () |
Returns the position of the light. More... | |
const vmml::Vector3f & | getDiffuseColor () |
Returns the color of the light for diffuse lighting. More... | |
const vmml::Vector3f & | getSpecularColor () |
Returns the color of the light for specular lighting. More... | |
GLfloat | getIntensity () |
Returns the intensity of the light. More... | |
GLfloat | getAttenuation () |
Returns the attenuation of the light. More... | |
GLfloat | getRadius () |
Returns the radius of the light. More... | |
A simple point light source.
|
inline |
Constructor loading standard values for position, color, intensity and attenuation.
|
inline |
Constructor loading standard values for intensity and attenuation.
[in] | position | Position of the light |
[in] | color | Color of the light for both diffuse and specular lighting |
|
inline |
Constructor.
[in] | position | Position of the light |
[in] | color | Color of the light for both diffuse and specular lighting |
[in] | intensity | Intensity of the light |
[in] | attenuation | Attenuation of the light |
[in] | radius | Radius of the light (clamps the light at a certain distance) |
|
inline |
Constructor.
[in] | position | Position of the light |
[in] | diffuseColor | Color of the light for diffuse lighting |
[in] | specularColor | Color of the light for specular lighting |
[in] | intensity | Intensity of the light |
[in] | attenuation | Attenuation of the light |
[in] | radius | Radius of the light (clamps the light at a certain distance) |
|
inlinevirtual |
Virtual destructor.
|
inline |
Returns the attenuation of the light.
|
inline |
Returns the color of the light for diffuse lighting.
|
inline |
Returns the intensity of the light.
|
inline |
Returns the position of the light.
|
inline |
Returns the radius of the light.
|
inline |
Returns the color of the light for specular lighting.
|
inline |
Sets the attenuation of the light.
[in] | attenuation | Attenuation of the light |
|
inline |
Sets the color of the light for diffuse lighting.
[in] | color | Color of the light for diffuse lighting |
|
inline |
Sets the intensity of the light.
[in] | intensity | Intensity of the light |
|
inline |
Sets the position of the light.
[in] | position | Position of the light |
|
inline |
Sets the radius of the light.
[in] | radius | Radius of the light |
|
inline |
Sets the color of the light for specular lighting.
[in] | color | Color of the light for specular lighting |