Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions
Light Class Reference

List of all members.

Public Member Functions

 Light (void)
 Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular)
 Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular, float shineness)
 Light (glm::vec3 pos, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular, float shineness, float constant_attenuation, float linear_attenuation, float quadratic_attenuation)
 ~Light (void)
void SetPosition (glm::vec3 pos)
void SetAmbient (glm::vec4 ambient)
void SetDiffuse (glm::vec4 diffuse)
void SetSpecular (glm::vec4 specular)
void SetConstantAttenuation (float attenuation)
void SetLinearAttenuation (float attenuation)
void SetQuadraticAttenuation (float attenuation)
void SetShineness (float shineness)
CameraGetCamera ()
void SetCamera (Camera *camera)
glm::vec3 GetPosition ()
glm::vec4 GetAmbient ()
glm::vec4 GetDiffuse ()
glm::vec4 GetSpecular ()
float GetConstantAttenuation ()
float GetLinearAttenuation ()
float GetQuadraticAttenuation ()
float GetShineness ()

Constructor & Destructor Documentation

Light::Light ( void  )

Standardconstructor

Light::Light ( glm::vec3  pos,
glm::vec4  ambient,
glm::vec4  diffuse,
glm::vec4  specular 
)

Konstruktor

Parameters:
posLightpos
ambientambienter Lichtanteil
diffusediffuse Lichtanteil
specularspecular Lichtanteil
Light::Light ( glm::vec3  pos,
glm::vec4  ambient,
glm::vec4  diffuse,
glm::vec4  specular,
float  shineness 
)

Konstruktor

Parameters:
posLightpos
ambientambienter Lichtanteil
diffusediffuse Lichtanteil
specularspecular Lichtanteil
Light::Light ( glm::vec3  pos,
glm::vec4  ambient,
glm::vec4  diffuse,
glm::vec4  specular,
float  shineness,
float  constant_attenuation,
float  linear_attenuation,
float  quadratic_attenuation 
)

Konstruktor

Parameters:
posLightpos
ambientambienter Lichtanteil
diffusediffuse Lichtanteil
specularspecular Lichtanteil
Light::~Light ( void  )

Dekonstruktor


Member Function Documentation

glm::vec4 Light::GetAmbient ( )

This method returns the ambient value

Returns:
ambient ambient value
Camera * Light::GetCamera ( )

This method returns the Camera for Shadow mapping

Returns:
Camera camera for shadow mapping
float Light::GetConstantAttenuation ( )

This method returns the constant

Returns:
position position value
glm::vec4 Light::GetDiffuse ( )

This method returns the diffuse value

Returns:
diffuse diffuse value
float Light::GetLinearAttenuation ( )

This method returns the linear attenuation

Returns:
linear_attenuation linear attenuation value
glm::vec3 Light::GetPosition ( )

This method returns the position

Returns:
position position value
float Light::GetQuadraticAttenuation ( )

This method returns the quadratic attenuation

Returns:
quadratic_attenuation quadratic attenuation value
float Light::GetShineness ( )

This method returns the shineness value

Returns:
shineness shineness value
glm::vec4 Light::GetSpecular ( )

This method returns the specular value

Returns:
specular specular value
void Light::SetAmbient ( glm::vec4  ambient)

This method sets the ambient value

Parameters:
ambientambient value
void Light::SetCamera ( Camera camera)

This method sets the camera for Shadow mapping Camera camera for shadow mapping

void Light::SetConstantAttenuation ( float  attenuation)

This method sets the constant attenuation value

Parameters:
constantattenuation constant attenuation value
void Light::SetDiffuse ( glm::vec4  diffuse)

This method sets the diffuse value

Parameters:
diffusediffuse value
void Light::SetLinearAttenuation ( float  attenuation)

This method sets the specular value

Parameters:
linearAttenuationlinear attenuation value
void Light::SetPosition ( glm::vec3  pos)

This method sets the light position

Parameters:
poslightpos
void Light::SetQuadraticAttenuation ( float  attenuation)

This method sets the attentuation value

Parameters:
attentuationattentuation value
void Light::SetShineness ( float  shineness)

This method sets the shinesess value

Parameters:
shinesessshinesess value
void Light::SetSpecular ( glm::vec4  specular)

This method sets the specular value

Parameters:
specularspecular value

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