SpatiumLib
Public Member Functions | Protected Attributes | List of all members
spatium::gfx3d::SpotLight Class Reference

Light source that emits a beam of light in one particular direction from a fixed point in space. More...

#include <SpotLight.h>

Inheritance diagram for spatium::gfx3d::SpotLight:
Inheritance graph
[legend]
Collaboration diagram for spatium::gfx3d::SpotLight:
Collaboration graph
[legend]

Public Member Functions

 SpotLight (double radius, double strength=10, std::array< unsigned char, 3 > color={255, 255, 255})
 Constrcutor. More...
 
- Public Member Functions inherited from spatium::gfx3d::Light
 Light (double strength=10, std::array< unsigned char, 3 > color={255, 255, 255})
 Constrcutor. More...
 

Protected Attributes

double m_radius
 
geom3d::Point3 m_position
 
geom3d::Vector3 m_direction
 
- Protected Attributes inherited from spatium::gfx3d::Light
double m_strength
 
std::array< unsigned char, 3 > m_color
 

Detailed Description

Light source that emits a beam of light in one particular direction from a fixed point in space.

Constructor & Destructor Documentation

◆ SpotLight()

spatium::gfx3d::SpotLight::SpotLight ( double  radius,
double  strength = 10,
std::array< unsigned char, 3 >  color = {255, 255, 255} 
)
inline

Constrcutor.

Parameters
[in]positionPosition of the light source
[in]directionDirection of the light
[in]radiusRadius of the light beam
[in]strengthStrength of the light
[in]colorColor (RGB)

Member Data Documentation

◆ m_direction

geom3d::Vector3 spatium::gfx3d::SpotLight::m_direction
protected

◆ m_position

geom3d::Point3 spatium::gfx3d::SpotLight::m_position
protected

◆ m_radius

double spatium::gfx3d::SpotLight::m_radius
protected
Todo:
Write to ostream

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