Skip to content

Class robot_dart::gui::magnum:🇬🇸:Light

ClassList > robot_dart > gui > magnum > gs > Light

Public Functions

Type Name
Light ()
Light (const Magnum::Vector4 & position, const Material & material, const Magnum::Vector3 & spot_direction, Magnum::Float spot_exponent, Magnum::Float spot_cut_off, const Magnum::Vector4 & attenuation, bool cast_shadows=true)
Magnum::Vector4 & attenuation ()
Magnum::Vector4 attenuation () const
bool casts_shadows () const
Material & material ()
Material material () const
Magnum::Vector4 position () const
Light & set_attenuation (const Magnum::Vector4 & attenuation)
Light & set_casts_shadows (bool cast_shadows)
Light & set_material (const Material & material)
Light & set_position (const Magnum::Vector4 & position)
Light & set_shadow_matrix (const Magnum::Matrix4 & shadowTransform)
Light & set_spot_cut_off (Magnum::Float spot_cut_off)
Light & set_spot_direction (const Magnum::Vector3 & spot_direction)
Light & set_spot_exponent (Magnum::Float spot_exponent)
Light & set_transformed_position (const Magnum::Vector4 & transformed_position)
Light & set_transformed_spot_direction (const Magnum::Vector3 & transformed_spot_direction)
Magnum::Matrix4 shadow_matrix () const
Magnum::Float & spot_cut_off ()
Magnum::Float spot_cut_off () const
Magnum::Vector3 spot_direction () const
Magnum::Float & spot_exponent ()
Magnum::Float spot_exponent () const
Magnum::Vector4 & transformed_position ()
Magnum::Vector4 transformed_position () const
Magnum::Vector3 & transformed_spot_direction ()
Magnum::Vector3 transformed_spot_direction () const

Protected Attributes

Type Name
Magnum::Vector4 _attenuation
bool _cast_shadows = = true
Material _material
Magnum::Vector4 _position
Magnum::Matrix4 _shadow_transform = {}
Magnum::Float _spot_cut_off
Magnum::Vector3 _spot_direction
Magnum::Float _spot_exponent
Magnum::Vector4 _transformed_position
Magnum::Vector3 _transformed_spot_direction

Public Functions Documentation

function Light [½]

robot_dart::gui::magnum::gs::Light::Light () 

function Light [2/2]

robot_dart::gui::magnum::gs::Light::Light (
    const Magnum::Vector4 & position,
    const Material & material,
    const Magnum::Vector3 & spot_direction,
    Magnum::Float spot_exponent,
    Magnum::Float spot_cut_off,
    const Magnum::Vector4 & attenuation,
    bool cast_shadows=true
) 

function attenuation [½]

Magnum::Vector4 & robot_dart::gui::magnum::gs::Light::attenuation () 

function attenuation [2/2]

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::attenuation () const

function casts_shadows

bool robot_dart::gui::magnum::gs::Light::casts_shadows () const

function material [½]

Material & robot_dart::gui::magnum::gs::Light::material () 

function material [2/2]

Material robot_dart::gui::magnum::gs::Light::material () const

function position

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::position () const

function set_attenuation

Light & robot_dart::gui::magnum::gs::Light::set_attenuation (
    const Magnum::Vector4 & attenuation
) 

function set_casts_shadows

Light & robot_dart::gui::magnum::gs::Light::set_casts_shadows (
    bool cast_shadows
) 

function set_material

Light & robot_dart::gui::magnum::gs::Light::set_material (
    const Material & material
) 

function set_position

Light & robot_dart::gui::magnum::gs::Light::set_position (
    const Magnum::Vector4 & position
) 

function set_shadow_matrix

Light & robot_dart::gui::magnum::gs::Light::set_shadow_matrix (
    const Magnum::Matrix4 & shadowTransform
) 

function set_spot_cut_off

Light & robot_dart::gui::magnum::gs::Light::set_spot_cut_off (
    Magnum::Float spot_cut_off
) 

function set_spot_direction

Light & robot_dart::gui::magnum::gs::Light::set_spot_direction (
    const Magnum::Vector3 & spot_direction
) 

function set_spot_exponent

Light & robot_dart::gui::magnum::gs::Light::set_spot_exponent (
    Magnum::Float spot_exponent
) 

function set_transformed_position

Light & robot_dart::gui::magnum::gs::Light::set_transformed_position (
    const Magnum::Vector4 & transformed_position
) 

function set_transformed_spot_direction

Light & robot_dart::gui::magnum::gs::Light::set_transformed_spot_direction (
    const Magnum::Vector3 & transformed_spot_direction
) 

function shadow_matrix

Magnum::Matrix4 robot_dart::gui::magnum::gs::Light::shadow_matrix () const

function spot_cut_off [½]

Magnum::Float & robot_dart::gui::magnum::gs::Light::spot_cut_off () 

function spot_cut_off [2/2]

Magnum::Float robot_dart::gui::magnum::gs::Light::spot_cut_off () const

function spot_direction

Magnum::Vector3 robot_dart::gui::magnum::gs::Light::spot_direction () const

function spot_exponent [½]

Magnum::Float & robot_dart::gui::magnum::gs::Light::spot_exponent () 

function spot_exponent [2/2]

Magnum::Float robot_dart::gui::magnum::gs::Light::spot_exponent () const

function transformed_position [½]

Magnum::Vector4 & robot_dart::gui::magnum::gs::Light::transformed_position () 

function transformed_position [2/2]

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::transformed_position () const

function transformed_spot_direction [½]

Magnum::Vector3 & robot_dart::gui::magnum::gs::Light::transformed_spot_direction () 

function transformed_spot_direction [2/2]

Magnum::Vector3 robot_dart::gui::magnum::gs::Light::transformed_spot_direction () const

Protected Attributes Documentation

variable _attenuation

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::_attenuation;

variable _cast_shadows

bool robot_dart::gui::magnum::gs::Light::_cast_shadows;

variable _material

Material robot_dart::gui::magnum::gs::Light::_material;

variable _position

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::_position;

variable _shadow_transform

Magnum::Matrix4 robot_dart::gui::magnum::gs::Light::_shadow_transform;

variable _spot_cut_off

Magnum::Float robot_dart::gui::magnum::gs::Light::_spot_cut_off;

variable _spot_direction

Magnum::Vector3 robot_dart::gui::magnum::gs::Light::_spot_direction;

variable _spot_exponent

Magnum::Float robot_dart::gui::magnum::gs::Light::_spot_exponent;

variable _transformed_position

Magnum::Vector4 robot_dart::gui::magnum::gs::Light::_transformed_position;

variable _transformed_spot_direction

Magnum::Vector3 robot_dart::gui::magnum::gs::Light::_transformed_spot_direction;


The documentation for this class was generated from the following file robot_dart/gui/magnum/gs/light.hpp