5 #ifndef VART_POINTLIGHT_H
6 #define VART_POINTLIGHT_H
17 float constantAttenuation;
18 float linearAttenuation;
19 float quadraticAttenuation;
23 PointLight(
Point4D loc,
float constantAtt=1.0,
float linearAtt=0.0,
float quadraticAtt=0.0);
30 void SetAttenuation(
float constant=1.0,
float linear=0.0,
float quadratic=0.0);
39 virtual bool DrawOGL(
unsigned int oglLightID)
const;
float GetLinearAttenuation() const
Points and vectors using homogeneous coordinates.
Header file for V-ART class "Light".
void SetAttenuation(float constant=1.0, float linear=0.0, float quadratic=0.0)
Sets the three attenuation factors, described on OpenGL Red Book, Chapter 5: Lighting, section Creating Light Sources.
float GetConstantAttenuation() const
Point4D GetLocation() const
float GetQuadraticAttenuation() const
virtual bool DrawOGL() const
Recursive drawing using OpenGL commands.
void SetLocation(const Point4D &newLocation)
Represents a light source.