com.neovisionaries.android.opengl
Enum BlendFactor

java.lang.Object
  extended by java.lang.Enum<BlendFactor>
      extended by com.neovisionaries.android.opengl.BlendFactor
All Implemented Interfaces:
Serializable, Comparable<BlendFactor>

public enum BlendFactor
extends Enum<BlendFactor>

Blend factor.

Author:
Takahiko Kawasaki
See Also:
glBlendFunc, glBlendFuncSeparate

Enum Constant Summary
CONSTANT_ALPHA
          GL_CONSTANT_ALPHA.
CONSTANT_COLOR
          GL_CONSTANT_COLOR.
DST_ALPHA
          GL_DST_ALPHA.
ONE
          GL_ONE.
ONE_MINUS_CONSTANT_ALPHA
          GL_ONE_MINUS_CONSTANT_ALPHA.
ONE_MINUS_CONSTANT_COLOR
          GL_ONE_MINUS_CONSTANT_COLOR.
ONE_MINUS_DST_ALPHA
          GL_ONE_MINUS_DST_ALPHA.
ONE_MINUS_SRC_ALPHA
          GL_ONE_MINUS_SRC_ALPHA.
ONE_MINUS_SRC_COLOR
          GL_ONE_MINUS_SRC_COLOR.
SRC_ALPHA
          GL_SRC_ALPHA.
SRC_ALPHA_SATURATE
          GL_SRC_ALPHA_SATURATE.
SRC_COLOR
          GL_SRC_COLOR.
ZERO
          GL_ZERO.
 
Method Summary
 int getFactor()
          Get the integer representing this blend factor.
static BlendFactor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BlendFactor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ZERO

public static final BlendFactor ZERO
GL_ZERO.


ONE

public static final BlendFactor ONE
GL_ONE.


SRC_COLOR

public static final BlendFactor SRC_COLOR
GL_SRC_COLOR.


ONE_MINUS_SRC_COLOR

public static final BlendFactor ONE_MINUS_SRC_COLOR
GL_ONE_MINUS_SRC_COLOR.


SRC_ALPHA

public static final BlendFactor SRC_ALPHA
GL_SRC_ALPHA.


ONE_MINUS_SRC_ALPHA

public static final BlendFactor ONE_MINUS_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA.


DST_ALPHA

public static final BlendFactor DST_ALPHA
GL_DST_ALPHA.


ONE_MINUS_DST_ALPHA

public static final BlendFactor ONE_MINUS_DST_ALPHA
GL_ONE_MINUS_DST_ALPHA.


CONSTANT_COLOR

public static final BlendFactor CONSTANT_COLOR
GL_CONSTANT_COLOR.


ONE_MINUS_CONSTANT_COLOR

public static final BlendFactor ONE_MINUS_CONSTANT_COLOR
GL_ONE_MINUS_CONSTANT_COLOR.


CONSTANT_ALPHA

public static final BlendFactor CONSTANT_ALPHA
GL_CONSTANT_ALPHA.


ONE_MINUS_CONSTANT_ALPHA

public static final BlendFactor ONE_MINUS_CONSTANT_ALPHA
GL_ONE_MINUS_CONSTANT_ALPHA.


SRC_ALPHA_SATURATE

public static final BlendFactor SRC_ALPHA_SATURATE
GL_SRC_ALPHA_SATURATE.

Method Detail

values

public static BlendFactor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BlendFactor c : BlendFactor.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BlendFactor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFactor

public int getFactor()
Get the integer representing this blend factor.

Returns:
The integer representing this blend factor.