PhongMaterial Class Reference

Represent a material based on Phong lighting model. More...

#include <phong_material.h>

Inheritance diagram for PhongMaterial:

Material ReferenceCounted TexturedPhongMaterial

List of all members.

Public Member Functions

 PhongMaterial ()
 A constructor that sets all colors to black and shininess to 0.
virtual ~PhongMaterial ()
 A destructor that does nothing.
virtual void apply (MaterialVisitor *visitor)
 the shininess (n)

Public Attributes

Rgba ambient
 the ambient color (ka)
Rgba diffuse
 the diffuse color (kd)
Rgba specular
 the specular color (ks)
float shininess


Detailed Description

Represent a material based on Phong lighting model.

Constructor & Destructor Documentation

PhongMaterial::PhongMaterial (  ) 

A constructor that sets all colors to black and shininess to 0.

virtual PhongMaterial::~PhongMaterial (  )  [virtual]

A destructor that does nothing.


Member Function Documentation

virtual void PhongMaterial::apply ( MaterialVisitor visitor  )  [virtual]

the shininess (n)


Member Data Documentation

the ambient color (ka)

the diffuse color (kd)

the specular color (ks)


The documentation for this class was generated from the following file:

Generated on Thu Aug 20 23:36:47 2009 for cglib by  doxygen 1.5.9