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.

Constructor Index

 o Material()
Default material is opaque, has no emissive, ambient, or specular component, and a white diffuse component.
 o Material(Color)
Construct an opaque material with a specified diffuse color.
 o Material(Color, Color, Color, Color, float, float)
Construct an opaque material with the specified opacity, shininess, and color terms.
 o Material(float, float, float)
Construct an opaque material with a specified diffuse color.

Method Index

 o setAmbient(Color)
Set the ambient color of the material.
 o setAmbient(float, float, float)
Set the ambient color of the material.
 o setDiffuse(Color)
Set the diffuse color of the material.
 o setDiffuse(float, float, float)
Set the diffuse color of the material.
 o setEmissive(Color)
Set the emissive color of the material.
 o setEmissive(float, float, float)
Set the emissive color of the material.
 o setOpacity(float)
Set the opacity of the material.
 o setShininess(float)
Set the shininess of the material.
 o setSpecular(Color)
Set the specular color of the material.
 o setSpecular(float, float, float)
Set the specular color of the material.

Constructors

 o Material
  public Material()
Default material is opaque, has no emissive, ambient, or specular component, and a white diffuse component.
 o Material
  public Material(Color c)
Construct an opaque material with a specified diffuse color. All other color terms are black.
 o Material
  public Material(float r,
                  float g,
                  float b)
Construct an opaque material with a specified diffuse color. All other color terms are black.
 o 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.

Methods

 o setEmissive
  public final void setEmissive(Color c)
Set the emissive color of the material.
 o setEmissive
  public final void setEmissive(float r,
                                float g,
                                float b)
Set the emissive color of the material.
 o setAmbient
  public final void setAmbient(Color c)
Set the ambient color of the material.
 o setAmbient
  public final void setAmbient(float r,
                               float g,
                               float b)
Set the ambient color of the material.
 o setDiffuse
  public final void setDiffuse(Color c)
Set the diffuse color of the material.
 o setDiffuse
  public final void setDiffuse(float r,
                               float g,
                               float b)
Set the diffuse color of the material.
 o setSpecular
  public final void setSpecular(Color c)
Set the specular color of the material.
 o setSpecular
  public final void setSpecular(float r,
                                float g,
                                float b)
Set the specular color of the material.
 o 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.
 o 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