public class ColorAttribute extends Attribute
Modifier and Type | Field and Description |
---|---|
static long |
Ambient |
static String |
AmbientAlias |
static long |
AmbientLight |
static String |
AmbientLightAlias |
Color |
color |
static long |
Diffuse |
static String |
DiffuseAlias |
static long |
Emissive |
static String |
EmissiveAlias |
static long |
Fog |
static String |
FogAlias |
static long |
Reflection |
static String |
ReflectionAlias |
static long |
Specular |
static String |
SpecularAlias |
Constructor and Description |
---|
ColorAttribute(ColorAttribute copyFrom) |
ColorAttribute(long type) |
ColorAttribute(long type,
Color color) |
ColorAttribute(long type,
float r,
float g,
float b,
float a) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Attribute o) |
Attribute |
copy() |
static ColorAttribute |
createAmbient(Color color) |
static ColorAttribute |
createAmbient(float r,
float g,
float b,
float a) |
static ColorAttribute |
createDiffuse(Color color) |
static ColorAttribute |
createDiffuse(float r,
float g,
float b,
float a) |
static ColorAttribute |
createReflection(Color color) |
static ColorAttribute |
createReflection(float r,
float g,
float b,
float a) |
static ColorAttribute |
createSpecular(Color color) |
static ColorAttribute |
createSpecular(float r,
float g,
float b,
float a) |
int |
hashCode() |
static boolean |
is(long mask) |
equals, getAttributeAlias, getAttributeType, toString
public static final String DiffuseAlias
public static final long Diffuse
public static final String SpecularAlias
public static final long Specular
public static final String AmbientAlias
public static final long Ambient
public static final String EmissiveAlias
public static final long Emissive
public static final String ReflectionAlias
public static final long Reflection
public static final String AmbientLightAlias
public static final long AmbientLight
public static final String FogAlias
public static final long Fog
public final Color color
public ColorAttribute(long type)
public ColorAttribute(long type, Color color)
public ColorAttribute(long type, float r, float g, float b, float a)
public ColorAttribute(ColorAttribute copyFrom)
public static final boolean is(long mask)
public static final ColorAttribute createAmbient(Color color)
public static final ColorAttribute createAmbient(float r, float g, float b, float a)
public static final ColorAttribute createDiffuse(Color color)
public static final ColorAttribute createDiffuse(float r, float g, float b, float a)
public static final ColorAttribute createSpecular(Color color)
public static final ColorAttribute createSpecular(float r, float g, float b, float a)
public static final ColorAttribute createReflection(Color color)
public static final ColorAttribute createReflection(float r, float g, float b, float a)
public Attribute copy()
public int compareTo(Attribute o)
Copyright © 2015. All rights reserved.