Class dnx.ice.Material
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.ice.Material
java.lang.Object
|
+----dnx.ice.Material
- public class Material
- extends Object
OpenGL-style surface properties for rendering.
-
Material()
- Default material is opaque, has no emissive, ambient, or specular
component, and a white diffuse component.
-
Material(Color)
- Construct an opaque material with a specified diffuse color.
-
Material(Color, Color, Color, Color, float, float)
- Construct an opaque material with the specified opacity, shininess,
and color terms.
-
Material(float, float, float)
- Construct an opaque material with a specified diffuse color.
-
setAmbient(Color)
- Set the ambient color of the material.
-
setAmbient(float, float, float)
- Set the ambient color of the material.
-
setDiffuse(Color)
- Set the diffuse color of the material.
-
setDiffuse(float, float, float)
- Set the diffuse color of the material.
-
setEmissive(Color)
- Set the emissive color of the material.
-
setEmissive(float, float, float)
- Set the emissive color of the material.
-
setOpacity(float)
- Set the opacity of the material.
-
setShininess(float)
- Set the shininess of the material.
-
setSpecular(Color)
- Set the specular color of the material.
-
setSpecular(float, float, float)
- Set the specular color of the material.
Material
public Material()
- Default material is opaque, has no emissive, ambient, or specular
component, and a white diffuse component.
Material
public Material(Color c)
- Construct an opaque material with a specified diffuse color. All
other color terms are black.
Material
public Material(float r,
float g,
float b)
- Construct an opaque material with a specified diffuse color. All
other color terms are black.
Material
public Material(Color emissive,
Color ambient,
Color diffuse,
Color specular,
float shininess,
float opacity)
- Construct an opaque material with the specified opacity, shininess,
and color terms.
setEmissive
public final void setEmissive(Color c)
- Set the emissive color of the material.
setEmissive
public final void setEmissive(float r,
float g,
float b)
- Set the emissive color of the material.
setAmbient
public final void setAmbient(Color c)
- Set the ambient color of the material.
setAmbient
public final void setAmbient(float r,
float g,
float b)
- Set the ambient color of the material.
setDiffuse
public final void setDiffuse(Color c)
- Set the diffuse color of the material.
setDiffuse
public final void setDiffuse(float r,
float g,
float b)
- Set the diffuse color of the material.
setSpecular
public final void setSpecular(Color c)
- Set the specular color of the material.
setSpecular
public final void setSpecular(float r,
float g,
float b)
- Set the specular color of the material.
setShininess
public final void setShininess(float s)
- Set the shininess of the material. s should be betweem 0 and
1. Use a value of 0 for dull relatively unreflective material and
1 for a polished surface which produces sharp specular highlights.
setOpacity
public final void setOpacity(float o)
- Set the opacity of the material. Use a value of 0 to make the
material completely transparent and 1 to make it opaque.
All Packages Class Hierarchy This Package Previous Next Index