maspack.render
Enum GLViewer.BlendType

java.lang.Object
  extended by java.lang.Enum<GLViewer.BlendType>
      extended by maspack.render.GLViewer.BlendType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GLViewer.BlendType>
Enclosing class:
GLViewer

public static enum GLViewer.BlendType
extends java.lang.Enum<GLViewer.BlendType>


Enum Constant Summary
GL_ONE
           
GL_ONE_MINUS_CONSTANT_ALPHA
           
GL_ONE_MINUS_SRC_ALPHA
           
GL_SRC_ALPHA
           
GL_ZERO
           
 
Method Summary
 int value()
           
static GLViewer.BlendType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GLViewer.BlendType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GL_ONE_MINUS_CONSTANT_ALPHA

public static final GLViewer.BlendType GL_ONE_MINUS_CONSTANT_ALPHA

GL_ONE_MINUS_SRC_ALPHA

public static final GLViewer.BlendType GL_ONE_MINUS_SRC_ALPHA

GL_ONE

public static final GLViewer.BlendType GL_ONE

GL_ZERO

public static final GLViewer.BlendType GL_ZERO

GL_SRC_ALPHA

public static final GLViewer.BlendType GL_SRC_ALPHA
Method Detail

values

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

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

valueOf

public static GLViewer.BlendType 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

value

public int value()