#include <Light.h>


Public Member Functions | |
| DirectionalLight () | |
| virtual | ~DirectionalLight () |
| virtual void | initVisual () |
| Initialize the textures, or other graphical resources. | |
| virtual void | drawLight () |
| virtual void | reinit () |
| Update method called when variables used in precomputation are modified. | |
Private Attributes | |
| Data< Vector3 > | direction |
Definition at line 76 of file Light.h.
| sofa::component::visualmodel::DirectionalLight::DirectionalLight | ( | ) |
| sofa::component::visualmodel::DirectionalLight::~DirectionalLight | ( | ) | [virtual] |
| void sofa::component::visualmodel::DirectionalLight::drawLight | ( | ) | [virtual] |
Reimplemented from sofa::component::visualmodel::Light.
Definition at line 141 of file Light.cpp.
References direction, sofa::core::objectmodel::Data< T >::getValue(), and sofa::component::visualmodel::Light::lightID.
| void sofa::component::visualmodel::DirectionalLight::initVisual | ( | ) | [virtual] |
Initialize the textures, or other graphical resources.
Called once before the first frame is drawn, and if the graphical context has been recreated.
Reimplemented from sofa::component::visualmodel::Light.
Definition at line 130 of file Light.cpp.
Referenced by reinit().
| void sofa::component::visualmodel::DirectionalLight::reinit | ( | ) | [virtual] |
Update method called when variables used in precomputation are modified.
Reimplemented from sofa::component::visualmodel::Light.
Definition at line 136 of file Light.cpp.
References initVisual().
Data<Vector3> sofa::component::visualmodel::DirectionalLight::direction [private] |
1.5.7.1