#include <Light.hh>


Class has to abstract access to any light source - point, spherical, plane used both in raytracer and photon mapper.
Definition at line 30 of file Light.hh.
Public Member Functions | |
| Light (const Color &C) | |
| virtual | ~Light () |
| const Color & | GetColor () const |
Protected Member Functions | |
| virtual std::string | Dump () const =0 |
Protected Attributes | |
| const Color | C |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Light &L) |
| World::Light::Light | ( | const Color & | C | ) | [inline] |
| virtual World::Light::~Light | ( | ) | [inline, virtual] |
| virtual std::string World::Light::Dump | ( | ) | const [protected, pure virtual] |
Debug function
Implemented in World::PointLight, and World::AmbientLight.
Referenced by World::operator<<().

| const Color& World::Light::GetColor | ( | ) | const [inline] |
Returns light color
Definition at line 47 of file Light.hh.
References C.
Referenced by Render::Raytracer::TraceLights().

| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Light & | L | |||
| ) | [friend] |
const Color World::Light::C [protected] |
Light color
Definition at line 33 of file Light.hh.
Referenced by World::AmbientLight::Dump(), World::PointLight::Dump(), and GetColor().
1.5.5