com.neovisionaries.android.opengl
Enum ProgramState

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

public enum ProgramState
extends Enum<ProgramState>

State of Program.

Author:
Takahiko Kawasaki

Enum Constant Summary
DELETED
          The program has been deleted.
LINKED
          The program has been linked successfully.
NEEDS_LINKING
          The program needs linking before use.
 
Method Summary
static ProgramState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProgramState[] 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

NEEDS_LINKING

public static final ProgramState NEEDS_LINKING
The program needs linking before use.

See Also:
Program.Program(Shader...), Program.attach(Shader), Program.detach(Shader)

LINKED

public static final ProgramState LINKED
The program has been linked successfully.

See Also:
Program.link()

DELETED

public static final ProgramState DELETED
The program has been deleted.

See Also:
Program.delete()
Method Detail

values

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

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

valueOf

public static ProgramState 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