Package gov.nasa.worldwind.render
Class Material
- java.lang.Object
-
- gov.nasa.worldwind.render.Material
-
public class Material extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(com.jogamp.opengl.GL2 gl, int face)
void
apply(com.jogamp.opengl.GL2 gl, int face, float alpha)
boolean
equals(java.lang.Object o)
java.awt.Color
getAmbient()
java.awt.Color
getDiffuse()
java.awt.Color
getEmission()
void
getRestorableState(RestorableSupport rs, RestorableSupport.StateObject so)
double
getShininess()
java.awt.Color
getSpecular()
protected void
glMaterial(com.jogamp.opengl.GL2 gl, int face, int name, java.awt.Color color)
protected void
glMaterial(com.jogamp.opengl.GL2 gl, int face, int name, java.awt.Color color, float alpha)
int
hashCode()
protected java.awt.Color
makeDarker(java.awt.Color color)
Material
restoreState(RestorableSupport rs, RestorableSupport.StateObject so)
-
-
-
Field Detail
-
WHITE
public static final Material WHITE
-
LIGHT_GRAY
public static final Material LIGHT_GRAY
-
GRAY
public static final Material GRAY
-
DARK_GRAY
public static final Material DARK_GRAY
-
BLACK
public static final Material BLACK
-
RED
public static final Material RED
-
PINK
public static final Material PINK
-
ORANGE
public static final Material ORANGE
-
YELLOW
public static final Material YELLOW
-
GREEN
public static final Material GREEN
-
MAGENTA
public static final Material MAGENTA
-
CYAN
public static final Material CYAN
-
BLUE
public static final Material BLUE
-
-
Method Detail
-
getAmbient
public final java.awt.Color getAmbient()
-
getDiffuse
public final java.awt.Color getDiffuse()
-
getSpecular
public final java.awt.Color getSpecular()
-
getEmission
public final java.awt.Color getEmission()
-
getShininess
public final double getShininess()
-
apply
public void apply(com.jogamp.opengl.GL2 gl, int face)
-
apply
public void apply(com.jogamp.opengl.GL2 gl, int face, float alpha)
-
glMaterial
protected void glMaterial(com.jogamp.opengl.GL2 gl, int face, int name, java.awt.Color color)
-
glMaterial
protected void glMaterial(com.jogamp.opengl.GL2 gl, int face, int name, java.awt.Color color, float alpha)
-
makeDarker
protected java.awt.Color makeDarker(java.awt.Color color)
-
getRestorableState
public void getRestorableState(RestorableSupport rs, RestorableSupport.StateObject so)
-
restoreState
public Material restoreState(RestorableSupport rs, RestorableSupport.StateObject so)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-