Class GLContextPool

java.lang.Object
dev.pfaff.altargui.render.GLContextPool
All Implemented Interfaces:
TaskExecutor

public abstract sealed class GLContextPool extends Object implements TaskExecutor
GLContextPool relies on preview features of the Java platform:
  • GLContextPool refers to one or more preview APIs: ScopedValue<T>.
Programs can only use GLContextPool when preview features are enabled.
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.