public final class JCGLAsyncInterfaceGL33 extends Object implements JCGLAsyncInterfaceGL33Type
JCGLAsyncInterfaceGL33Type
interface.| Modifier and Type | Method and Description |
|---|---|
<T> CompletableFuture<T> |
evaluate(Function<JCGLInterfaceGL33Type,T> c)
Evaluate a function on the context's dedicated OpenGL thread.
|
boolean |
isDeleted() |
static JCGLAsyncInterfaceGL33Type |
newAsync(Supplier<JCGLContextType> c)
Construct an async interface, evaluating the given function to obtain a
context that will be used exclusively for async calls.
|
CompletableFuture<Void> |
shutDown()
Schedule an orderly shutdown of the interface.
|
public static JCGLAsyncInterfaceGL33Type newAsync(Supplier<JCGLContextType> c)
c will be made current on that thread.c - The context supplierpublic <T> CompletableFuture<T> evaluate(Function<JCGLInterfaceGL33Type,T> c)
JCGLAsyncInterfaceGL33Typeevaluate in interface JCGLAsyncInterfaceGL33TypeT - The type of returned valuesc - The function that will be evaluatedcpublic CompletableFuture<Void> shutDown() throws JCGLException
JCGLAsyncInterfaceGL33TypeshutDown in interface JCGLAsyncInterfaceGL33TypeJCGLExceptionpublic boolean isDeleted()
isDeleted in interface JCGLResourceUsableTypetrue iff the given resource has been deleted.Copyright © 2016 <code@io7m.com> http://io7m.com