Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgLightModel Class Reference

A lightmodel object in a light model. More...

#include <ddglight.h>

Class diagram for ddgLightModel:

ddgGroup ddgNode

List of all members.


Public Members

 ddgLightModel ( ddgColor4 *a = NULL, bool t = false, bool l = false, bool c = false )
Create a light model and set the ambient light. More...

bool draw ( ddgContext *ctx )
Draw all elements of this group lighted.

void ambient ( ddgColor4 *col)
Set the ambient light level.

void ambient ( ddgColor3 *col, unsigned char a = 255)
Set the ambient light level.

void ambient ( unsigned char r, unsigned char g, unsigned char b, unsigned char a = 255)
Set the ambient light level.

void local ( bool l)
Set lighting calculation to perform angle math.

void twosided ( bool t)
Set lighting calculation to perform angle math.

void colormaterial ( bool t)
Mix current colour with material/texture color.

void state ( bool s)
Set lighting on or off.


Detailed Description

A lightmodel object in a light model.

Add this object to the scene twice, once to turn lighting on and once to turn it off again.


Member Function Documentation

ddgLightModel::ddgLightModel (ddgColor4 * a = NULL, bool t = false, bool l = false, bool c = false) [inline]

Create a light model and set the ambient light.

By default the light model is on, and lighting is not twosided and not local, and not coloredMaterial (faster).


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:54 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999