com.neovisionaries.android.opengl
Enum StencilAction

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

public enum StencilAction
extends Enum<StencilAction>

Stencil action taken according to the result of the stencil test and the depth test.

Author:
Takahiko Kawasaki
See Also:
StencilActionSet, glStencilOp, glStencilOpSeparate

Enum Constant Summary
DECR
          GL_DECR.
DECR_WRAP
          GL_DECR_WRAP.
INCR
          GL_INCR.
INCR_WRAP
          GL_INCR_WRAP.
INVERT
          GL_INVERT.
KEEP
          GL_KEEP.
REPLACE
          GL_REPLACE.
ZERO
          GL_ZERO.
 
Method Summary
 int getAction()
          Get the integer representing this action.
static StencilAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StencilAction[] 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 StencilAction ZERO
GL_ZERO.


REPLACE

public static final StencilAction REPLACE
GL_REPLACE.


INCR

public static final StencilAction INCR
GL_INCR.


DECR

public static final StencilAction DECR
GL_DECR.


INCR_WRAP

public static final StencilAction INCR_WRAP
GL_INCR_WRAP.


DECR_WRAP

public static final StencilAction DECR_WRAP
GL_DECR_WRAP.


KEEP

public static final StencilAction KEEP
GL_KEEP.


INVERT

public static final StencilAction INVERT
GL_INVERT.

Method Detail

values

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

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

valueOf

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

getAction

public int getAction()
Get the integer representing this action.