public class Material extends Object
Modifier and Type | Field and Description |
---|---|
static Material |
BLACK |
static Material |
BLUE |
static Material |
CYAN |
static Material |
DARK_GRAY |
static Material |
GRAY |
static Material |
GREEN |
static Material |
LIGHT_GRAY |
static Material |
MAGENTA |
static Material |
ORANGE |
static Material |
PINK |
static Material |
RED |
static Material |
WHITE |
static Material |
YELLOW |
Constructor and Description |
---|
Material(Color color) |
Material(Color specular,
Color diffuse,
Color ambient,
Color emission,
float shininess) |
Material(Color color,
float shininess) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GL2 gl,
int face) |
void |
apply(GL2 gl,
int face,
float alpha) |
boolean |
equals(Object o) |
Color |
getAmbient() |
Color |
getDiffuse() |
Color |
getEmission() |
void |
getRestorableState(RestorableSupport rs,
RestorableSupport.StateObject so) |
double |
getShininess() |
Color |
getSpecular() |
protected void |
glMaterial(GL2 gl,
int face,
int name,
Color color) |
protected void |
glMaterial(GL2 gl,
int face,
int name,
Color color,
float alpha) |
int |
hashCode() |
protected Color |
makeDarker(Color color) |
Material |
restoreState(RestorableSupport rs,
RestorableSupport.StateObject so) |
public static final Material BLACK
public static final Material BLUE
public static final Material CYAN
public static final Material DARK_GRAY
public static final Material GRAY
public static final Material GREEN
public static final Material LIGHT_GRAY
public static final Material MAGENTA
public static final Material ORANGE
public static final Material PINK
public static final Material RED
public static final Material WHITE
public static final Material YELLOW
public Material(Color color)
public Material(Color specular, Color diffuse, Color ambient, Color emission, float shininess)
public Material(Color color, float shininess)
public void apply(GL2 gl, int face)
public void apply(GL2 gl, int face, float alpha)
public final Color getAmbient()
public final Color getDiffuse()
public final Color getEmission()
public void getRestorableState(RestorableSupport rs, RestorableSupport.StateObject so)
public final double getShininess()
public final Color getSpecular()
public Material restoreState(RestorableSupport rs, RestorableSupport.StateObject so)