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

Light scene object. More...

#include <Light.h>

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

Public Member Functions

 Light (double strength=10, std::array< unsigned char, 3 > color={255, 255, 255})
 Constrcutor. More...
 

Protected Attributes

double m_strength
 
std::array< unsigned char, 3 > m_color
 

Detailed Description

Light scene object.

A Light emits light in all directions.

Constructor & Destructor Documentation

◆ Light()

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

Constrcutor.

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

Member Data Documentation

◆ m_color

std::array<unsigned char, 3> spatium::gfx3d::Light::m_color
protected

◆ m_strength

double spatium::gfx3d::Light::m_strength
protected
Todo:
Write to ostream

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