GLRenderer.EGLContextCallback

public interface GLRenderer.EGLContextCallback


Callbacks invoked when the GL dependencies are created and destroyed. These are logical places to setup and tear down any dependencies that are used for drawing content within a frame (ex. compiling shaders)

Summary

Public methods

abstract void

Callback invoked on the backing thread after EGL dependencies are initialized.

abstract void

Callback invoked on the backing thread before EGL dependencies are about to be torn down.

Public methods

onEGLContextCreated

Added in 1.0.0-beta01
@WorkerThread
abstract void onEGLContextCreated(@NonNull EGLManager eglManager)

Callback invoked on the backing thread after EGL dependencies are initialized. This is guaranteed to be invoked before any instance of RenderCallback.onSurfaceCreated is called. This will be invoked lazily before the first request to GLRenderer.requestRender

onEGLContextDestroyed

Added in 1.0.0-beta01
@WorkerThread
abstract void onEGLContextDestroyed(@NonNull EGLManager eglManager)

Callback invoked on the backing thread before EGL dependencies are about to be torn down. This is invoked after GLRenderer.stop is processed.