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

MSG::DirectionalLight Class Reference

DirectionalLight is a directional light source. More...

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

Class diagram for MSG::DirectionalLight:

MSG::Light MSG::Group MSG::Node MSG::ActiveDirectionalLight MSG::FakeShadowsDirectionalLight

List of all members.

Public Members

 DirectionalLight (const Point3d& _position, const Color& _ambient = Color::defaultAmbientLight, const Color& _diffuse = Color::defaultDiffuseLight, const Color& _specular = Color::defaultSpecularLight)
void issueGLcommands ()
virtual void render (std::vector<ActiveLight*>* &activelights, std::vector<TransformGroup*> transforms)
virtual bool handleEvent (Event* event)
Point3d position
GLfloat Lposition [4]

Friends

ostream& operator<< ( ostream& out, const DirectionalLight& directionallight )

Detailed Description

DirectionalLight is a directional light source.

Point and spot light sources are not implemented, but are simple to add.


Member Function Documentation

MSG::DirectionalLight::DirectionalLight (const Point3d & _position, const Color & _ambient = Color::defaultAmbientLight, const Color & _diffuse = Color::defaultDiffuseLight, const Color & _specular = Color::defaultSpecularLight)

void MSG::DirectionalLight::issueGLcommands ()

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

Reimplemented from MSG::Node.

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

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

Reimplemented from MSG::Node.


Friends And Related Function Documentation

ostream& operator<< (ostream & out, const DirectionalLight & directionallight) [friend]


Member Data Documentation

Point3d MSG::DirectionalLight::position

GLfloat MSG::DirectionalLight::Lposition[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