Skip to content

GlContextRequest

enum GlContextRequest
Package: dev.joid.backend.lwjgl3 · Module: backend-lwjgl3 · Source: GlContextRequest.java
Backends: LWJGL 3

The OpenGL context that a GLFW window asks for, set as window hints before the window exists.

Every request also asks for a 24-bit depth buffer and an 8-bit stencil buffer.

ReturnsSignatureSummary
voidapply()Sets the GLFW window hints of the request; call it after glfwInit() and before glfwCreateWindow.
intgetMajor()Returns the major OpenGL version asked for, 0 for the default context of the driver.
intgetMinor()Returns the minor OpenGL version asked for.
booleanisForwardCompatible()If true, the request asks for a forward-compatible context.
ValueSummary
COMPATIBILITYThe default context of the driver, for an application that also draws with the fixed pipeline.
CORE_32_FORWARD_COMPATIBLEAn OpenGL 3.2 forward-compatible core profile, for a driver that offers no other core profile.
CORE_33An OpenGL 3.3 core profile, the usual request.

void apply()

Sets the GLFW window hints of the request; call it after glfwInit() and before glfwCreateWindow. On macOS, a core profile is always forward-compatible.

int getMajor()

Returns the major OpenGL version asked for, 0 for the default context of the driver.

int getMinor()

Returns the minor OpenGL version asked for.

boolean isForwardCompatible()

If true, the request asks for a forward-compatible context.

COMPATIBILITY

The default context of the driver, for an application that also draws with the fixed pipeline.

CORE_32_FORWARD_COMPATIBLE

An OpenGL 3.2 forward-compatible core profile, for a driver that offers no other core profile.

CORE_33

An OpenGL 3.3 core profile, the usual request.


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