Avara3D 0.2.0
C++ API reference
a3d::AmbientLight Class Reference

Uniform light that contributes independent of position, direction, or distance. More...

#include <a3d/visual/light/AmbientLight.h>

Inheritance diagram for a3d::AmbientLight:
[legend]

Public Member Functions

 AmbientLight ()
 Creates an unnamed white AmbientLight. More...
 
 AmbientLight (const std::string &name)
 Creates a named white AmbientLight. More...
 
 AmbientLight (const Color &color)
 Creates an unnamed AmbientLight with color. More...
 
 AmbientLight (const std::string &name, const Color &color)
 Creates an AmbientLight with name and color. 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 Colorcolor () 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< AmbientLightAmbient ()
 Creates a white AmbientLight. More...
 
static std::shared_ptr< AmbientLightAmbient (const Color &color)
 Creates an AmbientLight with color. More...
 
static std::shared_ptr< DirectionalLightDirectional ()
 Creates a white DirectionalLight. More...
 
static std::shared_ptr< DirectionalLightDirectional (const Color &color)
 Creates a DirectionalLight with color. More...
 
static std::shared_ptr< PointLightPoint ()
 Creates a white PointLight. More...
 
static std::shared_ptr< PointLightPoint (const Color &color)
 Creates a PointLight with color. More...
 
static std::shared_ptr< SpotLightSpot ()
 Creates a white SpotLight. More...
 
static std::shared_ptr< SpotLightSpot (const Color &color)
 Creates a SpotLight with color. More...
 

Detailed Description

Uniform light that contributes independent of position, direction, or distance.

Definition at line 20 of file AmbientLight.h.

Constructor & Destructor Documentation

◆ AmbientLight() [1/4]

a3d::AmbientLight::AmbientLight ( )

Creates an unnamed white AmbientLight.

◆ AmbientLight() [2/4]

a3d::AmbientLight::AmbientLight ( const std::string &  name)
explicit

Creates a named white AmbientLight.

◆ AmbientLight() [3/4]

a3d::AmbientLight::AmbientLight ( const Color color)
explicit

Creates an unnamed AmbientLight with color.

◆ AmbientLight() [4/4]

a3d::AmbientLight::AmbientLight ( const std::string &  name,
const Color color 
)

Creates an AmbientLight with name and color.


The documentation for this class was generated from the following file: