Class MaterialFactory

java.lang.Object
  |
  +--MaterialFactory

public class MaterialFactory
extends Object

Description:
Supplies a factory method for deciding which subclass of Material to instantiate.

All code is extensively commented in Norwegian.


Constructor Summary
MaterialFactory(gl4java.GLFunc gl)
          MaterialFactory constructor
 
Method Summary
 Material createMaterial(String strMaterial)
          Creates an instance of the desired material
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterialFactory

public MaterialFactory(gl4java.GLFunc gl)
MaterialFactory constructor

Parameters:
gl - the GLFunc to pass on to the spesific Material class
Method Detail

createMaterial

public Material createMaterial(String strMaterial)
Creates an instance of the desired material

Parameters:
strMaterial - a String representation of the material to create
Returns:
the desired Material