#include </msg/src/nodes/light.h>
Class diagram for MSG::Light:
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] |
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.
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]
|
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] |