org.jagatoo.opengl.enums
Enum BlendMode

java.lang.Object
  extended by java.lang.Enum<BlendMode>
      extended by org.jagatoo.opengl.enums.BlendMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BlendMode>

public enum BlendMode
extends java.lang.Enum<BlendMode>

Insert type comment here.


Enum Constant Summary
BLENDED
          Uses the alpha blended transparency.
NONE
          No transparency, opaque object.
SCREEN_DOOR
          Uses screen-door transparency.
 
Field Summary
static BlendMode FASTEST
          Uses the fastest available method for transparency.
static BlendMode NICEST
          Uses the nicest (highest quality) available method for transparency.
 
Method Summary
 int toOpenGL()
           
static BlendMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BlendMode[] 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

NONE

public static final BlendMode NONE
No transparency, opaque object.


BLENDED

public static final BlendMode BLENDED
Uses the alpha blended transparency. A blend equation of (alpha*src+(1-alpha)*dst) is used, where alpha is (1-transparency).


SCREEN_DOOR

public static final BlendMode SCREEN_DOOR
Uses screen-door transparency. This is done using an on/off stipple pattern in which the percentage of transparent pixels is approximately equal to the value specified by the tranparency parameter.

Field Detail

NICEST

public static final BlendMode NICEST
Uses the nicest (highest quality) available method for transparency.


FASTEST

public static final BlendMode FASTEST
Uses the fastest available method for transparency.

Method Detail

values

public static BlendMode[] 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 (BlendMode c : BlendMode.values())
    System.out.println(c);

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

valueOf

public static BlendMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toOpenGL

public final int toOpenGL()