com.io7m.jcanephora.async

## Interface JCGLAsyncInterfaceGL33Type

- All Superinterfaces:
    JCGLResourceUsableType
  All Known Implementing Classes:
    JCGLAsyncInterfaceGL33

      public interface JCGLAsyncInterfaceGL33Type
      extends JCGLResourceUsableType

  An "asynchronous" wrapper around an `JCGLInterfaceGL33Type` interface.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> CompletableFuture<T>` | `evaluate(Function<JCGLInterfaceGL33Type,T> c)` Evaluate a function on the context's dedicated OpenGL thread.
    `CompletableFuture<Void>` | `shutDown()` Schedule an orderly shutdown of the interface.

    - ### Methods inherited from interface com.io7m.jcanephora.core.JCGLResourceUsableType

      `isDeleted`

- - ### Method Detail

    - #### evaluate

          <T> CompletableFuture<T> evaluate(Function<JCGLInterfaceGL33Type,T> c)

      Evaluate a function on the context's dedicated OpenGL thread.
      Type Parameters:
        `T` - The type of returned values
      Parameters:
        `c` - The function that will be evaluated
      Returns:
        The value returned by `c`

    - #### shutDown

          CompletableFuture<Void> shutDown()

      Schedule an orderly shutdown of the interface. This releases the underlying OpenGL context but does not destroy it.
      Returns:
        A future representing the shutdown in progress

Copyright © 2016 <code@io7m.com> http://io7m.com