public class ColorAttribute extends MaterialAttribute
| Modifier and Type | Field and Description |
|---|---|
Color |
color |
static java.lang.String |
diffuse |
static java.lang.String |
emissive |
static java.lang.String |
fog |
static java.lang.String |
rim |
static java.lang.String |
specular |
isPooled, name| Modifier | Constructor and Description |
|---|---|
protected |
ColorAttribute() |
|
ColorAttribute(Color color,
java.lang.String name)
Creates a
MaterialAttribute that is a pure Color. |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
void |
bind(ShaderProgram program) |
MaterialAttribute |
copy() |
void |
free() |
MaterialAttribute |
pooledCopy() |
void |
set(MaterialAttribute attr) |
getShaderFlagpublic static final java.lang.String diffuse
public static final java.lang.String specular
public static final java.lang.String emissive
public static final java.lang.String rim
public static final java.lang.String fog
public final Color color
protected ColorAttribute()
public ColorAttribute(Color color, java.lang.String name)
MaterialAttribute that is a pure Color.color - The Color that you wish the attribute to represent.name - The name of the uniform in the ShaderProgram that will have its value set to this color. (A 'name' does
not matter for a game that uses GL10).public void bind()
bind in class MaterialAttributepublic void bind(ShaderProgram program)
bind in class MaterialAttributepublic MaterialAttribute copy()
copy in class MaterialAttributepublic void set(MaterialAttribute attr)
set in class MaterialAttributepublic MaterialAttribute pooledCopy()
pooledCopy in class MaterialAttributepublic void free()
free in class MaterialAttribute