Enum Class StateGuard.Slot
- All Implemented Interfaces:
Serializable, Comparable<StateGuard.Slot>, Constable
- Enclosing class:
StateGuard
A piece of GL state the guard can save and restore.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe active texture unit.The buffer bound toGL_ARRAY_BUFFER.GL_BLEND.The four separate blend factors.The colour write mask.GL_CULL_FACE.The depth write mask.GL_DEPTH_TEST.The framebuffer bound toGL_FRAMEBUFFER.The program in use.GL_SCISSOR_TESTand the scissor box.GL_STENCIL_TEST, the stencil function, operations and write mask.The 2D texture bound on each touched unit.GL_VERTEX_ARRAY_BINDING.The viewport. -
Method Summary
Modifier and TypeMethodDescriptionstatic StateGuard.SlotReturns the enum constant of this class with the specified name.static StateGuard.Slot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLEND
GL_BLEND. -
BLEND_FUNC
The four separate blend factors. -
DEPTH_TEST
GL_DEPTH_TEST. -
DEPTH_MASK
The depth write mask. -
CULL
GL_CULL_FACE. -
PROGRAM
The program in use. -
FRAMEBUFFER
The framebuffer bound toGL_FRAMEBUFFER. -
VIEWPORT
The viewport. -
ARRAY_BUFFER
The buffer bound toGL_ARRAY_BUFFER. -
VERTEX_ARRAY
GL_VERTEX_ARRAY_BINDING. -
ACTIVE_TEXTURE
The active texture unit. -
TEXTURES
The 2D texture bound on each touched unit. -
SCISSOR
GL_SCISSOR_TESTand the scissor box. -
STENCIL
GL_STENCIL_TEST, the stencil function, operations and write mask. -
COLOR_MASK
The colour write mask.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-