27 Light(
const std::string& newDescription,
float newIntensity,
28 float newAmbientIntensity,
const Color& newColor,
42 void Turn(
bool on_off);
64 virtual bool DrawOGL(
unsigned int oglLightID)
const;
78 unsigned int getOpenGLID(
unsigned int lightID)
const;
82 float ambientIntensity;
90 #endif // VART_LIGHT_H
virtual SceneNode * Copy()
Returns a copy of an Light. Every derived class must reimplements this method, to avoid errors with V...
Base class for objects that compose a scene graph.
void SetColor(const Color &c)
Points and vectors using homogeneous coordinates.
unsigned int getOpenGLID(unsigned int lightID) const
Header file for V-ART class "SceneNode".
virtual void DrawForPicking() const
Draws and object, setting pick info.
Transform * GetTransform() const
Gets a pointer to the light transform.
RGBA color representation.
void SetLocation(const Point4D &newLocation)
Sets the location of the light.
Axis aligned bounding box.
Light & operator=(const Light &light)
virtual bool RecursiveBoundingBox(BoundingBox *bBox)
Always returns false, therefore recursive bbox does not exist.
void SetIntensity(float i)
void SetAmbientIntensity(float ai)
float GetAmbientIntensity() const
float GetIntensity() const
static const Light & BRIGHT_AMBIENT()
Strong, white ambient light.
void Turn(bool on_off)
Turns a light on or off.
Header file for V-ART class "Color".
virtual bool DrawOGL() const
Recursive drawing using OpenGL commands.
Header file for V-ART class "Point4D".
Point4D GetLocation() const
static const Light & SUN()
White directional light towards negative Y. Small ambient intensity.
Represents a light source.