SnapshotProfile
enum SnapshotProfile
Package: dev.joid.backend.lwjgl3.snapshot · Module: backend-lwjgl3 · Source: SnapshotProfile.java
Backends: LWJGL 3
The OpenGL contexts on which the snapshot tests of LWJGL 3 run, each a version, a profile and the extensions it hides.
Description
Section titled “Description”On Mesa, MESA_GL_VERSION_OVERRIDE and MESA_GLSL_VERSION_OVERRIDE give the version that a profile needs.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SnapshotProfile | current() factory | Returns the profile named by the system property joid.snapshot.profile, DEFAULT when it is not set. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | check(GlCapabilities capabilities) | Throws an IllegalStateException when the context does not have the version and the profile of the profile; DEFAULT accepts every context. |
int | getVersion() | Returns the OpenGL version times 100 that the profile needs, 0 for any. |
GlProfile | getProfile() | Returns the OpenGL profile that the profile needs, or null for any. |
GlContextRequest | getRequest() | Returns the context request of the hidden window. |
String | getShadingLanguageVersion() | Returns the GLSL version that the binding reports instead of the driver’s, or null to keep it. |
List<String> | getHiddenExtensionList() | Returns the extensions that the binding hides, read-only. |
Values
Section titled “Values”| Value | Summary |
|---|---|
DEFAULT | The context of CORE_33, whatever its version: the profile of a plain test run. |
GL_20 | OpenGL 2.0 compatibility with GLSL 1.10, which JOID refuses: it tests that registering the backend throws. |
GL_21 | OpenGL 2.1 compatibility, the oldest context that JOID draws on. |
GL_21_EXT | OpenGL 2.1 without GL_ARB_framebuffer_object and GL_ARB_vertex_array_object: the EXT framebuffers and no vertex arrays. |
GL_21_EXT_NO_BLIT | GL_21_EXT without GL_EXT_framebuffer_blit either: the mipmaps are drawn. |
GL_30 | OpenGL 3.0 compatibility. |
GL_32_FORWARD_COMPATIBLE | OpenGL 3.2 forward-compatible core. |
GL_33 | OpenGL 3.3 core. |
GL_45_COMPATIBILITY | OpenGL 4.5 compatibility, with the fixed pipeline next to the shaders. |
Creation details
Section titled “Creation details”current
Section titled “current”SnapshotProfile current() factory
Returns the profile named by the system property joid.snapshot.profile, DEFAULT when it is not set.
Method details
Section titled “Method details”void check(GlCapabilities capabilities)
Throws:
IllegalStateException: The snapshot profile … needs OpenGL ….… …, this context offers … …: force its version with MESA_GL_VERSION_OVERRIDE and MESA_GLSL_VERSION_OVERRIDE
Throws an IllegalStateException when the context does not have the version and the profile of the profile; DEFAULT accepts every context.
getVersion
Section titled “getVersion”int getVersion()
Returns the OpenGL version times 100 that the profile needs, 0 for any.
getProfile
Section titled “getProfile”GlProfile getProfile()
Returns the OpenGL profile that the profile needs, or null for any.
getRequest
Section titled “getRequest”GlContextRequest getRequest()
Returns the context request of the hidden window.
getShadingLanguageVersion
Section titled “getShadingLanguageVersion”String getShadingLanguageVersion()
Returns the GLSL version that the binding reports instead of the driver’s, or null to keep it.
getHiddenExtensionList
Section titled “getHiddenExtensionList”List<String> getHiddenExtensionList()
Returns the extensions that the binding hides, read-only.
Value details
Section titled “Value details”DEFAULT
Section titled “DEFAULT”DEFAULT
The context of CORE_33, whatever its version: the profile of a plain test run.
GL_20
OpenGL 2.0 compatibility with GLSL 1.10, which JOID refuses: it tests that registering the backend throws.
GL_21
OpenGL 2.1 compatibility, the oldest context that JOID draws on.
GL_21_EXT
Section titled “GL_21_EXT”GL_21_EXT
OpenGL 2.1 without GL_ARB_framebuffer_object and GL_ARB_vertex_array_object: the EXT framebuffers and no vertex arrays.
GL_21_EXT_NO_BLIT
Section titled “GL_21_EXT_NO_BLIT”GL_21_EXT_NO_BLIT
GL_21_EXT without GL_EXT_framebuffer_blit either: the mipmaps are drawn.
GL_30
OpenGL 3.0 compatibility.
GL_32_FORWARD_COMPATIBLE
Section titled “GL_32_FORWARD_COMPATIBLE”GL_32_FORWARD_COMPATIBLE
OpenGL 3.2 forward-compatible core.
GL_33
OpenGL 3.3 core.
GL_45_COMPATIBILITY
Section titled “GL_45_COMPATIBILITY”GL_45_COMPATIBILITY
OpenGL 4.5 compatibility, with the fixed pipeline next to the shaders.
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
