#include <ddglight.h>
Class diagram for ddgLightModel:
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. |
Add this object to the scene twice, once to turn lighting on and once to turn it off again.
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).