Holds all information for a single light object.
More...
#include <gfxlib_struct.h>
|
| GFXLight () |
|
| GFXLight (const bool enabled, const GFXColor &vect, const GFXColor &diffuse=GFXColor(0, 0, 0, 1), const GFXColor &specular=GFXColor(0, 0, 0, 1), const GFXColor &ambient=GFXColor(0, 0, 0, 1), const GFXColor &attenuate=GFXColor(1, 0, 0), const GFXColor &direction=GFXColor(0, 0, 0), float exp=0.0f, float cutoff=180.0f, float size=0.0f) |
|
void | SetProperties (enum LIGHT_TARGET, const GFXColor &color) |
|
GFXColor | GetProperties (enum LIGHT_TARGET) const |
|
void | setSize (float size_) |
|
float | getSize () const |
|
Vector | getPosition () const |
|
void | disable () |
|
void | enable () |
|
bool | attenuated () const |
|
void | apply_attenuate (bool attenuated) |
|
Holds all information for a single light object.
Definition at line 341 of file gfxlib_struct.h.
GFXLight::GFXLight |
( |
const bool |
enabled, |
|
|
const GFXColor & |
vect, |
|
|
const GFXColor & |
diffuse = GFXColor( 0, 0, 0, 1 ) , |
|
|
const GFXColor & |
specular = GFXColor( 0, 0, 0, 1 ) , |
|
|
const GFXColor & |
ambient = GFXColor( 0, 0, 0, 1 ) , |
|
|
const GFXColor & |
attenuate = GFXColor( 1, 0, 0 ) , |
|
|
const GFXColor & |
direction = GFXColor( 0, 0, 0 ) , |
|
|
float |
exp = 0.0f , |
|
|
float |
cutoff = 180.0f , |
|
|
float |
size = 0.0f |
|
) |
| |
void GFXLight::apply_attenuate |
( |
bool |
attenuated) | |
|
bool GFXLight::attenuated |
( |
) | |
const |
void GFXLight::disable |
( |
) | |
|
void GFXLight::enable |
( |
) | |
|
Vector GFXLight::getPosition |
( |
) | |
const |
|
inline |
GFXColor GFXLight::GetProperties |
( |
enum |
LIGHT_TARGET) | |
const |
float GFXLight::getSize |
( |
) | |
const |
|
inline |
void GFXLight::setSize |
( |
float |
size_) | |
|
|
inline |
float GFXLight::ambient[4] |
float GFXLight::attenuate[3] |
float GFXLight::diffuse[4] |
float GFXLight::direction[3] |
float GFXLight::specular[4] |
last is w for positional, otherwise 3 for spec
Definition at line 347 of file gfxlib_struct.h.
The documentation for this class was generated from the following files: