LibTrace

Programming - The Light class

The "Light" class is a standard light. It is derived from the "List" class so linked lists of lights can be made.
Light::Light(Vector pos, rgb col)

void Light::set_position(Vector pos)
void Light::set_color(rgb col)

Vector Light::get_position(void)
rgb Light::get_color(void)



Light::Light(Vector pos, rgb col)
This constructor sets up the light at the position "pos" and with the color "col".
void Light::set_position(Vector pos)
This function simply sets the position of the light to "pos".
void Light::set_color(rgb col)
This function simply sets the color of the light to "col".
Vector Light::get_position(void)
This function returns the value set by "set_position()".
rgb Light::get_color(void)
This function returns the value set by "set_color()".