net.sf.j3d.threeD.raytracer.textures
Class TextureFactory
java.lang.Object
net.sf.j3d.threeD.raytracer.util.EditableFactory
net.sf.j3d.threeD.raytracer.textures.TextureFactory
public class TextureFactory
- extends EditableFactory
The TextureFactory class provides static methods for constructing Texture 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 Texture object
this TextureFactory can construct. |
stripeTexture
public static final int stripeTexture
- See Also:
- Constant Field Values
imageTexture
public static final int imageTexture
- See Also:
- Constant Field Values
TextureFactory
public TextureFactory()
getTypeNames
public String[] getTypeNames()
- Returns an array of String objects containing names for each type of Texture object
this TextureFactory 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 is out of bounds.