GlStateKey
enum GlStateKey
Package: dev.joid.base.opengl.render.state · Module: base-opengl · Source: GlStateKey.java
Backends: LWJGL 2 LWJGL 3
The kinds of OpenGL state that the journal records, in the order in which it restores them.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
READ_BUFFER | The read buffer of a framebuffer. |
FRAMEBUFFER | The framebuffer bound to the draw or the read target. |
RENDERBUFFER | The bound renderbuffer. |
PROGRAM | The current program. |
VERTEX_ATTRIBUTE | The pointer and the enabled flag of a vertex attribute. |
VERTEX_ARRAY | The bound vertex array. |
BUFFER | The buffer bound to a target. |
TEXTURE_PARAMETER | A parameter of a texture. |
TEXTURE | The texture bound to a unit. |
SAMPLER | The sampler bound to a unit. |
CURRENT_VERTEX_ATTRIBUTE | The current value of a vertex attribute. |
CAPABILITY | A capability switched with glEnable. |
BLEND_EQUATION | The blend equations. |
BLEND_FUNCTION | The blend factors. |
COLOR_MASK | The color write mask. |
CLEAR_COLOR | The clear color. |
CLEAR_DEPTH | The clear depth. |
CLEAR_STENCIL | The clear stencil value. |
DEPTH_MASK | The depth write mask. |
DEPTH_FUNCTION | The depth function. |
STENCIL_MASK | The stencil write masks. |
STENCIL_FUNCTION | The stencil functions. |
STENCIL_OPERATION | The stencil operations. |
VIEWPORT | The viewport. |
LINE_WIDTH | The line width. |
POLYGON_MODE | The polygon mode. |
FRONT_FACE | The winding of front faces. |
CULL_FACE | The culled face. |
PIXEL_STORE | A pixel storage parameter. |
ACTIVE_TEXTURE | The active texture unit, restored last. |
Value details
Section titled “Value details”READ_BUFFER
Section titled “READ_BUFFER”READ_BUFFER
The read buffer of a framebuffer.
FRAMEBUFFER
Section titled “FRAMEBUFFER”FRAMEBUFFER
The framebuffer bound to the draw or the read target.
RENDERBUFFER
Section titled “RENDERBUFFER”RENDERBUFFER
The bound renderbuffer.
PROGRAM
Section titled “PROGRAM”PROGRAM
The current program.
VERTEX_ATTRIBUTE
Section titled “VERTEX_ATTRIBUTE”VERTEX_ATTRIBUTE
The pointer and the enabled flag of a vertex attribute.
VERTEX_ARRAY
Section titled “VERTEX_ARRAY”VERTEX_ARRAY
The bound vertex array.
BUFFER
Section titled “BUFFER”BUFFER
The buffer bound to a target.
TEXTURE_PARAMETER
Section titled “TEXTURE_PARAMETER”TEXTURE_PARAMETER
A parameter of a texture.
TEXTURE
Section titled “TEXTURE”TEXTURE
The texture bound to a unit.
SAMPLER
Section titled “SAMPLER”SAMPLER
The sampler bound to a unit.
CURRENT_VERTEX_ATTRIBUTE
Section titled “CURRENT_VERTEX_ATTRIBUTE”CURRENT_VERTEX_ATTRIBUTE
The current value of a vertex attribute.
CAPABILITY
Section titled “CAPABILITY”CAPABILITY
A capability switched with glEnable.
BLEND_EQUATION
Section titled “BLEND_EQUATION”BLEND_EQUATION
The blend equations.
BLEND_FUNCTION
Section titled “BLEND_FUNCTION”BLEND_FUNCTION
The blend factors.
COLOR_MASK
Section titled “COLOR_MASK”COLOR_MASK
The color write mask.
CLEAR_COLOR
Section titled “CLEAR_COLOR”CLEAR_COLOR
The clear color.
CLEAR_DEPTH
Section titled “CLEAR_DEPTH”CLEAR_DEPTH
The clear depth.
CLEAR_STENCIL
Section titled “CLEAR_STENCIL”CLEAR_STENCIL
The clear stencil value.
DEPTH_MASK
Section titled “DEPTH_MASK”DEPTH_MASK
The depth write mask.
DEPTH_FUNCTION
Section titled “DEPTH_FUNCTION”DEPTH_FUNCTION
The depth function.
STENCIL_MASK
Section titled “STENCIL_MASK”STENCIL_MASK
The stencil write masks.
STENCIL_FUNCTION
Section titled “STENCIL_FUNCTION”STENCIL_FUNCTION
The stencil functions.
STENCIL_OPERATION
Section titled “STENCIL_OPERATION”STENCIL_OPERATION
The stencil operations.
VIEWPORT
Section titled “VIEWPORT”VIEWPORT
The viewport.
LINE_WIDTH
Section titled “LINE_WIDTH”LINE_WIDTH
The line width.
POLYGON_MODE
Section titled “POLYGON_MODE”POLYGON_MODE
The polygon mode.
FRONT_FACE
Section titled “FRONT_FACE”FRONT_FACE
The winding of front faces.
CULL_FACE
Section titled “CULL_FACE”CULL_FACE
The culled face.
PIXEL_STORE
Section titled “PIXEL_STORE”PIXEL_STORE
A pixel storage parameter.
ACTIVE_TEXTURE
Section titled “ACTIVE_TEXTURE”ACTIVE_TEXTURE
The active texture unit, restored last.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
