PhongMaterial Class Reference

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

#include <phong_material.h>

Inheritance diagram for PhongMaterial:

Material Object 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 accept (Visitor *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::accept ( Visitor visitor  )  [virtual]

the shininess (n)

Accept a visitor.

Implements Material.

Reimplemented in TexturedPhongMaterial.


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 Tue Sep 8 02:20:35 2009 for cglib by  doxygen 1.5.9