#include <Light.h>


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