#include </msg/src/nodes/directionallight.h>
Class diagram for MSG::DirectionalLight:
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 ) |
Point and spot light sources are not implemented, but are simple to add.
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.
ostream& operator<< (ostream & out, const DirectionalLight & directionallight) [friend]
|
Point3d MSG::DirectionalLight::position |
GLfloat MSG::DirectionalLight::Lposition[4] |