GlStateSnapshot
final class GlStateSnapshot
Package: dev.joid.base.opengl.snapshot · Module: base-opengl · Source: GlStateSnapshot.java
Backends: LWJGL 2 LWJGL 3
Reads the state of an OpenGL context that the state guard must preserve, by name.
Description
Section titled “Description”It ships in the snapshot jar of base-opengl and in the dev and demo jars of the backends; the published joid-base-opengl jar does not hold it.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
Map<String,String> | read(IGlBinding binding, GlCapabilities capabilities, MaterialReader materialReader) static | Returns the state of the current context, read through the binding: capabilities, bindings, blending, depth, stencil, pixel storage, viewport, scissor, the first four texture units and the vertex attributes, and the fixed-function state of a compatibility context, whose materials come from the reader. |
Method details
Section titled “Method details”Map<String,String> read(IGlBinding binding, GlCapabilities capabilities, MaterialReader materialReader) static
Returns the state of the current context, read through the binding: capabilities, bindings, blending, depth, stencil, pixel storage, viewport, scissor, the first four texture units and the vertex attributes, and the fixed-function state of a compatibility context, whose materials come from the reader. It leaves the active texture unit as it found it.
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
