Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgMaterial Class Reference

A material for rendering. More...

#include <ddgmaterial.h>

Class diagram for ddgMaterial:

ddgNode

List of all members.


Public Members

 ddgMaterial ( unsigned char r = 200, unsigned char g = 200, unsigned char b = 200 )
By default this sets diffuse color.

void ambient (unsigned char r, unsigned char g, unsigned char b, unsigned char t = 255)
Set ambient color of material.

void diffuse (unsigned char r, unsigned char g, unsigned char b, unsigned char t = 255)
Set diffuse color of material.

void specular (unsigned char r, unsigned char g, unsigned char b, unsigned char t = 255)
Set specular color of material.

void emission (unsigned char r, unsigned char g, unsigned char b, unsigned char t = 255)
Set emission color of material.

void shininess (float s)
Set specular component of material.

bool draw (ddgContext *c)
Set this material for all objects following it.


Detailed Description

A material for rendering.

All objects which should be rendered by this material should be added to this material object.


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