public final class JCGLAsyncInterfaceGL33 extends Object implements JCGLAsyncInterfaceGL33Type
JCGLAsyncInterfaceGL33Type
interface.| Modifier and Type | Method and Description |
|---|---|
<A,B> CompletableFuture<B> |
evaluateWith(A c,
BiFunction<JCGLInterfaceGL33Type,A,B> f)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluatepublic static JCGLAsyncInterfaceGL33Type newAsync(Supplier<JCGLContextType> c)
c will be made current on that thread.c - The context supplierpublic CompletableFuture<Void> shutDown() throws JCGLException
JCGLAsyncInterfaceGL33TypeshutDown in interface JCGLAsyncInterfaceGL33TypeJCGLExceptionpublic boolean isDeleted()
isDeleted in interface JCGLResourceUsableTypetrue iff the given resource has been deleted.public <A,B> CompletableFuture<B> evaluateWith(A c, BiFunction<JCGLInterfaceGL33Type,A,B> f)
JCGLAsyncInterfaceUsableGL33TypeevaluateWith in interface JCGLAsyncInterfaceUsableGL33TypeA - The type of user-defined context valuesB - The type of returned valuesc - A user-defined context value, passed to ff - The function that will be evaluatedfCopyright © 2016 <code@io7m.com> http://io7m.com