Class GLContextPool

java.lang.Object
dev.pfaff.altargui.render.GLContextPool

public abstract sealed class GLContextPool extends Object
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.
  • Field Details

    • POOL_ACQUIRED_GL

      public static ScopedValuePREVIEW<dev.pfaff.glass.opengl.GL> POOL_ACQUIRED_GL
    • GL_CONTEXT_POOL

      public static final GLContextPool GL_CONTEXT_POOL
      The global context pool.
  • Constructor Details

    • GLContextPool

      public GLContextPool()
  • Method Details

    • acquireExecutor

      public abstract Executor acquireExecutor()