KiCad PCB EDA Suite
|
A base light class to derive to implement other light classes. More...
#include <light.h>
Public Member Functions | |
LIGHT () | |
virtual | ~LIGHT () |
virtual void | GetLightParameters (const SFVEC3F &aHitPoint, SFVEC3F &aOutVectorToLight, SFVEC3F &aOutLightColor, float &aOutDistance) const =0 |
Get parameters from this light. | |
void | SetCastShadows (bool aCastShadow) |
bool | GetCastShadows () const |
Protected Attributes | |
bool | m_castShadow |
A base light class to derive to implement other light classes.
|
inline |
Definition at line 43 of file light.h.
References m_castShadow.
|
inline |
Definition at line 60 of file light.h.
References m_castShadow.
|
pure virtual |
Get parameters from this light.
aHitPoint | input hit position |
aOutVectorToLight | a vector that points from the hit position in direction to the light |
aOutLightColor | the color of this light |
aOutDistance | the distance from the point to the light |
Implemented in DIRECTIONAL_LIGHT, and POINT_LIGHT.
|
inline |
Definition at line 59 of file light.h.
References m_castShadow.
Referenced by RENDER_3D_RAYTRACE_BASE::Reload().
|
protected |
Definition at line 63 of file light.h.
Referenced by DIRECTIONAL_LIGHT::DIRECTIONAL_LIGHT(), GetCastShadows(), LIGHT(), POINT_LIGHT::POINT_LIGHT(), and SetCastShadows().