Skip to content

Lwjgl3StateGuardBackend

final class Lwjgl3StateGuardBackend
Extends: GlStateGuardBackend
Package: dev.joid.base.lwjgl3.opengl.snapshot · Module: base-lwjgl3-opengl · Source: Lwjgl3StateGuardBackend.java
Backends: LWJGL 3

The state guard backend of the OpenGL of LWJGL 3, over any snapshot backend.

It sets the traps and draws like a host with the GL11C to GL33C classes of LWJGL 3, and GL11 for the fixed-function traps, so an engine on LWJGL 3 runs the state guard suite with its own snapshot backend. It ships in the snapshot jar of base-lwjgl3-opengl and in the dev and demo jars of the LWJGL 3 backend.

ReturnsSignatureSummary
Lwjgl3StateGuardBackend(ISnapshotBackend backend)Creates the backend over that snapshot backend.

ReturnsSignatureSummary
voiddrawExternal()Draws like a host: additive blending, a scissor and a viewport of its own, a texture on unit 0, unit 1 active, and a current color on a compatibility context.
voidfill(int x, int y, int width, int height, int color)Clears that rectangle to that ARGB color through the scissor test, then turns the scissor test off.
Inherited from GlStateGuardBackend (8)

create · destroy · present · capture · getRenderer · inject · supports · readState

Lwjgl3StateGuardBackend(ISnapshotBackend backend)

Creates the backend over that snapshot backend.

void drawExternal()

Draws like a host: additive blending, a scissor and a viewport of its own, a texture on unit 0, unit 1 active, and a current color on a compatibility context.

void fill(int x, int y, int width, int height, int color)

Clears that rectangle to that ARGB color through the scissor test, then turns the scissor test off.


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

Report a problem with this page