threeD.raytracer.engine
Class ShaderFactory
java.lang.Object
threeD.raytracer.util.EditableFactory
threeD.raytracer.engine.ShaderFactory
- public class ShaderFactory
- extends EditableFactory
The ShaderFactory class provides static methods for constructing Shader objects.
|
Method Summary |
Editable |
constructObject(int index)
Constructs a Shader object of the type specified by the integer index. |
String[] |
getTypeNames()
Returns an array of String objects containing names for each type of Shader object
this ShaderFactory can construct. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diffuseShader
public static final int diffuseShader
- See Also:
- Constant Field Values
highlightShader
public static final int highlightShader
- See Also:
- Constant Field Values
reflectionShader
public static final int reflectionShader
- See Also:
- Constant Field Values
refractionShader
public static final int refractionShader
- See Also:
- Constant Field Values
textureShader
public static final int textureShader
- See Also:
- Constant Field Values
ShaderFactory
public ShaderFactory()
getTypeNames
public String[] getTypeNames()
- Returns an array of String objects containing names for each type of Shader object
this ShaderFactory can construct.
- Specified by:
getTypeNames in class EditableFactory
constructObject
public Editable constructObject(int index)
- Constructs a Shader object of the type specified by the integer index.
- Specified by:
constructObject in class EditableFactory
- Throws:
IndexOutOfBoundsException - If the specified index does not correspond to a type of shader.
Copyright 2003-05 Mike Murray