|
Avara3D 0.2.0
C++ API reference
|
Omnidirectional light located at its containing Node's world position. More...
#include <a3d/visual/light/PointLight.h>
Public Member Functions | |
| PointLight () | |
| Creates an unnamed white PointLight. More... | |
| PointLight (const std::string &name) | |
| Creates a named white PointLight. More... | |
| PointLight (const Color &color) | |
Creates an unnamed PointLight with color. More... | |
| PointLight (const std::string &name, const Color &color) | |
Creates a PointLight with name and color. More... | |
| const Attenuation & | attenuation () const |
| Returns the distance-attenuation coefficients. More... | |
| void | attenuation (const Attenuation &attenuation) |
| Sets the distance-attenuation coefficients. More... | |
Public Member Functions inherited from a3d::Light | |
| const std::optional< std::string > & | name () const |
| Returns the optional light name. More... | |
| void | name (const std::string &name) |
| Sets the light name. More... | |
| const Color & | color () const |
| Returns the light color. More... | |
| void | color (const Color &color) |
| Sets the light color. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from a3d::Light | |
| static std::shared_ptr< AmbientLight > | Ambient () |
| Creates a white AmbientLight. More... | |
| static std::shared_ptr< AmbientLight > | Ambient (const Color &color) |
Creates an AmbientLight with color. More... | |
| static std::shared_ptr< DirectionalLight > | Directional () |
| Creates a white DirectionalLight. More... | |
| static std::shared_ptr< DirectionalLight > | Directional (const Color &color) |
Creates a DirectionalLight with color. More... | |
| static std::shared_ptr< PointLight > | Point () |
| Creates a white PointLight. More... | |
| static std::shared_ptr< PointLight > | Point (const Color &color) |
Creates a PointLight with color. More... | |
| static std::shared_ptr< SpotLight > | Spot () |
| Creates a white SpotLight. More... | |
| static std::shared_ptr< SpotLight > | Spot (const Color &color) |
Creates a SpotLight with color. More... | |
Omnidirectional light located at its containing Node's world position.
Light intensity is reduced with distance according to the configured Attenuation coefficients.
Definition at line 26 of file PointLight.h.
| a3d::PointLight::PointLight | ( | ) |
Creates an unnamed white PointLight.
|
explicit |
Creates a named white PointLight.
|
explicit |
Creates an unnamed PointLight with color.
| a3d::PointLight::PointLight | ( | const std::string & | name, |
| const Color & | color | ||
| ) |
Creates a PointLight with name and color.
| const Attenuation & a3d::PointLight::attenuation | ( | ) | const |
Returns the distance-attenuation coefficients.
| void a3d::PointLight::attenuation | ( | const Attenuation & | attenuation | ) |
Sets the distance-attenuation coefficients.