net.sf.j3d.threeD.raytracer.shaders
Class ShaderFactory
java.lang.Object
net.sf.j3d.threeD.raytracer.util.EditableFactory
net.sf.j3d.threeD.raytracer.shaders.ShaderFactory
public class ShaderFactory
- extends EditableFactory
The ShaderFactory class provides static methods for constructing Shader objects.
- Author:
- Mike Murray
|
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. |
blendingShader
public static final int blendingShader
- See Also:
- Constant Field Values
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
silhouetteShader
public static final int silhouetteShader
- 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.