com.neovisionaries.android.opengl
Enum ShaderState

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

public enum ShaderState
extends Enum<ShaderState>

State of Shader.

Author:
Takahiko Kawasaki

Enum Constant Summary
COMPILED
          The shader source has been compiled successfully.
CREATED
          The shader has been created.
DELETED
          The shader has been deleted.
SOURCE_SET
          A shader source has been set.
 
Method Summary
static ShaderState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShaderState[] 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

CREATED

public static final ShaderState CREATED
The shader has been created.

See Also:
Shader.Shader(ShaderType)

SOURCE_SET

public static final ShaderState SOURCE_SET
A shader source has been set.

See Also:
Shader.Shader(ShaderType, String), Shader.setSource(String)

COMPILED

public static final ShaderState COMPILED
The shader source has been compiled successfully.

See Also:
Shader.compile()

DELETED

public static final ShaderState DELETED
The shader has been deleted.

See Also:
Shader.delete()
Method Detail

values

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

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

valueOf

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