Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Namespace Members   Compound Members   File Members   Related Pages  

MSG::Light Class Reference

Base class for lights. More...

#include </msg/src/nodes/light.h>

Class diagram for MSG::Light:

MSG::Group MSG::Node MSG::DirectionalLight MSG::ActiveDirectionalLight MSG::FakeShadowsDirectionalLight

List of all members.

Public Members

 Light (const Color& _ambient = Color::defaultAmbientLight, const Color& _diffuse = Color::defaultDiffuseLight, const Color& _specular = Color::defaultSpecularLight)
virtual void render (std::vector<ActiveLight*>* &activelights, std::vector<TransformGroup*> transforms) = 0
virtual bool handleEvent (Event* event) = 0
Color ambient
Color diffuse
Color specular
GLfloat Lambient [4]
GLfloat Ldiffuse [4]
GLfloat Lspecular [4]

Detailed Description

Base class for lights.

The light class would normally be a subclass of Node, but it is convenient here to make it a subclass of Group as this makes the usage of ClippingPointLight more natural.


Member Function Documentation

MSG::Light::Light (const Color & _ambient = Color::defaultAmbientLight, const Color & _diffuse = Color::defaultDiffuseLight, const Color & _specular = Color::defaultSpecularLight)

virtual void MSG::Light::render (std::vector<ActiveLight *>*& activelights, std::vector<TransformGroup *> transforms) [pure virtual]

Reimplemented from MSG::Node.

Reimplemented in MSG::ActiveDirectionalLight, MSG::DirectionalLight, and MSG::FakeShadowsDirectionalLight.

virtual bool MSG::Light::handleEvent (Event * event) [pure virtual]

Reimplemented from MSG::Node.

Reimplemented in MSG::DirectionalLight.


Member Data Documentation

Color MSG::Light::ambient

Color MSG::Light::diffuse

Color MSG::Light::specular

GLfloat MSG::Light::Lambient[4]

GLfloat MSG::Light::Ldiffuse[4]

GLfloat MSG::Light::Lspecular[4]


The documentation for this class was generated from the following files:
Generated at Sat Jul 22 00:32:15 2000 for MSG by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999