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

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

public class BlendingAttribute
extends Attribute


Field Summary
static String Alias
           
 boolean blended
          Whether this material should be considered blended (default: true).
 int destFunction
          Specifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA)
 float opacity
          The opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).
 int sourceFunction
          Specifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA)
static long Type
           
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.Attribute
type
 
Constructor Summary
BlendingAttribute()
           
BlendingAttribute(BlendingAttribute copyFrom)
           
BlendingAttribute(boolean blended, float opacity)
           
BlendingAttribute(boolean blended, int sourceFunc, int destFunc, float opacity)
           
BlendingAttribute(float opacity)
           
BlendingAttribute(int sourceFunc, int destFunc)
           
BlendingAttribute(int sourceFunc, int destFunc, float opacity)
           
 
Method Summary
 BlendingAttribute copy()
           
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

Alias

public static final String Alias
See Also:
Constant Field Values

Type

public static final long Type

blended

public boolean blended
Whether this material should be considered blended (default: true). This is used for sorting (back to front instead of front to back).


sourceFunction

public int sourceFunction
Specifies how the (incoming) red, green, blue, and alpha source blending factors are computed (default: GL_SRC_ALPHA)


destFunction

public int destFunction
Specifies how the (existing) red, green, blue, and alpha destination blending factors are computed (default: GL_ONE_MINUS_SRC_ALPHA)


opacity

public float opacity
The opacity used as source alpha value, ranging from 0 (fully transparent) to 1 (fully opaque), (default: 1).

Constructor Detail

BlendingAttribute

public BlendingAttribute()

BlendingAttribute

public BlendingAttribute(boolean blended,
                         int sourceFunc,
                         int destFunc,
                         float opacity)

BlendingAttribute

public BlendingAttribute(int sourceFunc,
                         int destFunc,
                         float opacity)

BlendingAttribute

public BlendingAttribute(int sourceFunc,
                         int destFunc)

BlendingAttribute

public BlendingAttribute(boolean blended,
                         float opacity)

BlendingAttribute

public BlendingAttribute(float opacity)

BlendingAttribute

public BlendingAttribute(BlendingAttribute copyFrom)
Method Detail

is

public static final boolean is(long mask)

copy

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


Copyright © 2013. All Rights Reserved.