le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LeLight Class Reference

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
 

Detailed Description

Contain and manage a light object.

Constructor & Destructor Documentation

LeLight::LeLight ( )
LeLight::LeLight ( LE_LIGHT_TYPES  type,
LeColor  color 
)

Member Function Documentation

void LeLight::black ( LeMesh mesh)
static

Clear a mesh light information (shades)

Parameters
[in]meshmesh pointer
void LeLight::blendColors ( LeColor  color1,
LeColor  color2,
float  factor,
LeColor result 
)
static

Blend two colors together and accumulate the result.

Parameters
[in]color1first RGBA 32bit color
[in]color2second RGBA 32bit color
[in]factorblend factor (0.0 - 1.0)
[in]resultaccumulated color result
void LeLight::shine ( LeMesh mesh)

Shine a mesh with the light.

Parameters
[in]meshmesh pointer

Member Data Documentation

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


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