le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
Contain and manage a light object. More...
#include <light.h>
Public Member Functions | |
LeLight () | |
LeLight (LE_LIGHT_TYPES type, LeColor color) | |
void | shine (LeMesh *mesh) |
Shine a mesh with the light. More... | |
Static Public Member Functions | |
static void | black (LeMesh *mesh) |
Clear a mesh light information (shades) More... | |
static void | blendColors (LeColor color1, LeColor color2, float factor, LeColor &result) |
Blend two colors together and accumulate the result. More... | |
Public Attributes | |
LE_LIGHT_TYPES | type |
LeAxis | axis |
LeColor | color |
float | rolloff |
Contain and manage a light object.
LeLight::LeLight | ( | ) |
LeLight::LeLight | ( | LE_LIGHT_TYPES | type, |
LeColor | color | ||
) |
|
static |
Clear a mesh light information (shades)
[in] | mesh | mesh pointer |
Blend two colors together and accumulate the result.
[in] | color1 | first RGBA 32bit color |
[in] | color2 | second RGBA 32bit color |
[in] | factor | blend factor (0.0 - 1.0) |
[in] | result | accumulated color result |
void LeLight::shine | ( | LeMesh * | mesh | ) |
Shine a mesh with the light.
[in] | mesh | mesh pointer |
LeAxis LeLight::axis |
Axis (source and direction) of the light
LeColor LeLight::color |
Diffuse color of the light
float LeLight::rolloff |
Roll off factor (point model) of the light
LE_LIGHT_TYPES LeLight::type |
Model of the light