Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgFog Class Reference

This object can be inserted in to a scene. More...

#include <ddgfog.h>

Class diagram for ddgFog:

ddgGroup ddgNode

List of all members.


Public Members

enum  Type { NONE, LINEAR, EXPONENTIAL, EXPONENTIAL2 }
Fog mode.

 ddgFog ( Type m, float d = 0.3, const ddgColor3 *c = NULL, const ddgVector2 *v = NULL)
Default constructor.

bool draw ( ddgContext *ctx )
Render all the members of the group.

bool init ( ddgContext *ctx )
Initialize the graphics.

Type type (void)
Return the current type.

void setType ( Type t )
Set the fog type.

void setDensity ( float d)
Set the fog density.

void setColor ( ddgColor3 *c = NULL)
Set the fog color.


Detailed Description

This object can be inserted in to a scene.

All objects which are added to it will be rendered with fog.


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