Class GLContextPool
java.lang.Object
dev.pfaff.altargui.render.GLContextPool
GLContextPool
relies on preview features of the Java platform:
GLContextPool
refers to one or more preview APIs:ScopedValue
<T>.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A pool of OpenGL worker threads, each with their own context with sharing enabled with the main context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GLContextPool
The global context pool.static ScopedValuePREVIEW
<dev.pfaff.glass.opengl.GL> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
POOL_ACQUIRED_GL
-
GL_CONTEXT_POOL
The global context pool.
-
-
Constructor Details
-
GLContextPool
public GLContextPool()
-
-
Method Details
-
acquireExecutor
-
GLContextPool
when preview features are enabled.