com.badlogic.gdx.graphics.g3d.attributes
Class ColorAttribute

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.Attribute
      extended by com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute

public class ColorAttribute
extends Attribute


Field Summary
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
           
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.Attribute
type
 
Constructor Summary
ColorAttribute(ColorAttribute copyFrom)
           
ColorAttribute(long type)
           
ColorAttribute(long type, Color color)
           
ColorAttribute(long type, float r, float g, float b, float a)
           
 
Method Summary
 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)
           
static boolean is(long mask)
           
 
Methods inherited from class com.badlogic.gdx.graphics.g3d.Attribute
equals, getAttributeAlias, getAttributeType, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DiffuseAlias

public static final String DiffuseAlias
See Also:
Constant Field Values

Diffuse

public static final long Diffuse

SpecularAlias

public static final String SpecularAlias
See Also:
Constant Field Values

Specular

public static final long Specular

AmbientAlias

public static final String AmbientAlias
See Also:
Constant Field Values

Ambient

public static final long Ambient

EmissiveAlias

public static final String EmissiveAlias
See Also:
Constant Field Values

Emissive

public static final long Emissive

ReflectionAlias

public static final String ReflectionAlias
See Also:
Constant Field Values

Reflection

public static final long Reflection

AmbientLightAlias

public static final String AmbientLightAlias
See Also:
Constant Field Values

AmbientLight

public static final long AmbientLight

FogAlias

public static final String FogAlias
See Also:
Constant Field Values

Fog

public static final long Fog

color

public final Color color
Constructor Detail

ColorAttribute

public ColorAttribute(long type)

ColorAttribute

public ColorAttribute(long type,
                      Color color)

ColorAttribute

public ColorAttribute(long type,
                      float r,
                      float g,
                      float b,
                      float a)

ColorAttribute

public ColorAttribute(ColorAttribute copyFrom)
Method Detail

is

public static final boolean is(long mask)

createAmbient

public static final ColorAttribute createAmbient(Color color)

createAmbient

public static final ColorAttribute createAmbient(float r,
                                                 float g,
                                                 float b,
                                                 float a)

createDiffuse

public static final ColorAttribute createDiffuse(Color color)

createDiffuse

public static final ColorAttribute createDiffuse(float r,
                                                 float g,
                                                 float b,
                                                 float a)

createSpecular

public static final ColorAttribute createSpecular(Color color)

createSpecular

public static final ColorAttribute createSpecular(float r,
                                                  float g,
                                                  float b,
                                                  float a)

createReflection

public static final ColorAttribute createReflection(Color color)

createReflection

public static final ColorAttribute createReflection(float r,
                                                    float g,
                                                    float b,
                                                    float a)

copy

public Attribute copy()
Specified by:
copy in class Attribute
Returns:
An exact copy of this attribute


Copyright © 2013. All Rights Reserved.