#include <Light.h>


Public Member Functions | |
| PositionalLight () | |
| virtual | ~PositionalLight () |
| 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. | |
Protected Attributes | |
| Data< Vector3 > | position |
| Data< float > | attenuation |
Definition at line 91 of file Light.h.
| sofa::component::visualmodel::PositionalLight::PositionalLight | ( | ) |
| sofa::component::visualmodel::PositionalLight::~PositionalLight | ( | ) | [virtual] |
| void sofa::component::visualmodel::PositionalLight::drawLight | ( | ) | [virtual] |
Reimplemented from sofa::component::visualmodel::Light.
Reimplemented in sofa::component::visualmodel::SpotLight.
Definition at line 178 of file Light.cpp.
References attenuation, sofa::core::objectmodel::Data< T >::getValue(), sofa::component::visualmodel::Light::lightID, and position.
| void sofa::component::visualmodel::PositionalLight::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.
Reimplemented in sofa::component::visualmodel::SpotLight.
Definition at line 166 of file Light.cpp.
Referenced by reinit().
| void sofa::component::visualmodel::PositionalLight::reinit | ( | ) | [virtual] |
Update method called when variables used in precomputation are modified.
Reimplemented from sofa::component::visualmodel::Light.
Reimplemented in sofa::component::visualmodel::SpotLight.
Definition at line 172 of file Light.cpp.
References initVisual().
Data<float> sofa::component::visualmodel::PositionalLight::attenuation [protected] |
Data<Vector3> sofa::component::visualmodel::PositionalLight::position [protected] |
1.5.7.1