OpenGLPrakt --> cObject --> cVisibleObject --> cInteractiveObject --> cLight --> cDirectionLight

class cDirectionLight
    extends cLight as public

A class for an OpenGL directional light. The inherited mRotation quaternion is used (in contrast to cLight) - it modifies the light's direction.

Source:
../src/cDirectionLight.hh:34

Constructors Index

cDirectionLight
[public] default constructor
cDirectionLight
[public] constructor with initialization of position and name
cDirectionLight
[public] constructor with initialization of position, state and name
cDirectionLight
[public] constructor with initialization of position, color, state and name
~cDirectionLight
[public] destructor


Variables Index

mDirection
[protected] actual direction


Methods Index

ActivateLight
[protected] this one performs the actual set up of the light
DrawThisObject
[protected] A light is a visible object therefore it needs a drawing function
GetDefaultName
[protected] identify an instance of this class if it's got no name
SetDirection
[public] set new direction to point to


Constructors

cDirectionLight

public cDirectionLight ( cEventDispatcher * disp ,
                         const char * name = NULL ) ;

default constructor

cDirectionLight

public cDirectionLight ( cEventDispatcher * disp ,
                         const cVertex & dir ,
                         const char * name = NULL ) ;

constructor with initialization of position and name

Parameters:
dir initial direction of light source
state initial state of light source (default: on)
name name of light source (optional)

cDirectionLight

public cDirectionLight ( cEventDispatcher * disp ,
                         const cVertex & dir ,
                         const teLightState state = LIGHT_ON ,
                         const char * name = NULL ) ;

constructor with initialization of position, state and name

Parameters:
dir initial direction of light source
state initial state of light source (default: on)
name name of light source (optional)

cDirectionLight

public cDirectionLight ( cEventDispatcher * disp ,
                         const cVertex & dir ,
                         const cADSEColor & col ,
                         const teLightState state = LIGHT_ON ,
                         const char * name = NULL ) ;

constructor with initialization of position, color, state and name

Parameters:
dir initial direction of light source
col color of the light source (cADSEColor object) (emissive color component is not used)
state initial state of light source (default: on)
name name of light source (optional)

cDirectionLight

public virtual ~ cDirectionLight ( ) ;

destructor


Variables

mDirection

protected cVertex mDirection

actual direction


Methods

SetDirection

public virtual void SetDirection ( const cVertex & dir ) ;

set new direction to point to

Parameters:
dir new direction

ActivateLight

protected virtual void ActivateLight ( ) ;

this one performs the actual set up of the light

(called by Activate()); separeted to simplify cDirectionLight

DrawThisObject

protected virtual void DrawThisObject ( ) ;

A light is a visible object therefore it needs a drawing function

Not used here - a DirectionLight cannot be drawn!

GetDefaultName

protected virtual const char * GetDefaultName ( ) const ;

identify an instance of this class if it's got no name


This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.