INFO804 Introduction à l'informatique graphique
|
Lights are used to give lights in a scene. More...
#include <Light.h>
Public Member Functions | |
Light () | |
Default constructor. Nothing to do. | |
virtual | ~Light () |
Virtual destructor since object contains virtual methods. | |
virtual void | init (Viewer &)=0 |
virtual void | light (Viewer &)=0 |
virtual void | draw (Viewer &)=0 |
virtual Vector3 | direction (const Vector3 &) const =0 |
virtual Color | color (const Vector3 &) const =0 |
|
inline |
|
inlinevirtual |
Implemented in rt::PointLight.
Given the point p, returns the normalized direction to this light.
Implemented in rt::PointLight.
|
pure virtual |
This method is called by Scene::draw() at each frame to redisplay objects in the OpenGL window.
Implemented in rt::PointLight.
|
pure virtual |
This method is called by Scene::init() at the beginning of the display in the OpenGL window.
Implemented in rt::PointLight.
|
pure virtual |
This method is called by Scene::light() at each frame to set the lights in the OpenGL window.
Implemented in rt::PointLight.