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.
Description
Section titled “Description”Every request also asks for a 24-bit depth buffer and an 8-bit stencil buffer.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | apply() | Sets the GLFW window hints of the request; call it after glfwInit() and before glfwCreateWindow. |
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. |
Values
Section titled “Values”| Value | Summary |
|---|---|
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. |
Method details
Section titled “Method details”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.
getMajor
Section titled “getMajor”int getMajor()
Returns the major OpenGL version asked for, 0 for the default context of the driver.
getMinor
Section titled “getMinor”int getMinor()
Returns the minor OpenGL version asked for.
isForwardCompatible
Section titled “isForwardCompatible”boolean isForwardCompatible()
If true, the request asks for a forward-compatible context.
Value details
Section titled “Value details”COMPATIBILITY
Section titled “COMPATIBILITY”COMPATIBILITY
The default context of the driver, for an application that also draws with the fixed pipeline.
CORE_32_FORWARD_COMPATIBLE
Section titled “CORE_32_FORWARD_COMPATIBLE”CORE_32_FORWARD_COMPATIBLE
An OpenGL 3.2 forward-compatible core profile, for a driver that offers no other core profile.
CORE_33
Section titled “CORE_33”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
