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

Light source that emits light in all directions from a fixed point in space. More...

#include <PointLight.h>

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

Public Member Functions

 PointLight (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

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

Detailed Description

Light source that emits light in all directions from a fixed point in space.

Constructor & Destructor Documentation

◆ PointLight()

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

Constrcutor.

Parameters
[in]strengthStrength
[in]colorColor (RGB)

Member Data Documentation

◆ m_position

geom3d::Point3 spatium::gfx3d::PointLight::m_position
protected
Todo:
Write to ostream

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