ScummVM API documentation
Tetraedge::TeLight Class Referenceabstract

Public Member Functions

TeVector3f32 directionVector () const
 
virtual void disable (uint lightno)=0
 
virtual void enable (uint lightno)=0
 
virtual void draw (TeCamera &camera)=0
 
void transformDirPoint (const TeVector3f32 &pt1, TeVector3f32 &pt2)
 
void transformSpotPoint (TeVector3f32 &pt1)
 
virtual void update (uint lightno)=0
 
void setSpecular (const TeColor &col)
 
void setDiffuse (const TeColor &col)
 
void setAmbient (const TeColor &col)
 
void setConstAtten (float val)
 
void setLinearAtten (float val)
 
void setQuadraticAtten (float val)
 
void setCutoff (float val)
 
void setExponent (float val)
 
void setDisplaySize (float val)
 
void setPosition3d (const TeVector3f32 &pos)
 
void setPositionRadial (const TeVector2f32 &pos)
 
void setType (TeLightType ltype)
 
const TeVector2f32positionRadial () const
 
const TeVector3f32position3d () const
 
Common::String dump () const
 
void correctAttenuation ()
 

Static Public Member Functions

static void setGlobalAmbient (const TeColor &col)
 
static TeColor globalAmbient ()
 
static TeLightmakeInstance ()
 

Protected Attributes

TeVector3f32 _position3d
 
TeVector2f32 _positionRadial
 
TeColor _colAmbient
 
TeColor _colDiffuse
 
TeColor _colSpecular
 
enum TeLightType _type
 
float _constAtten
 
float _linearAtten
 
float _quadraticAtten
 
float _cutoff
 
float _exponent
 
float _displaySize
 

Static Protected Attributes

static uint32 _globalAmbientColor
 

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