GLRenderer.EGLContextCallback


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 functions

Unit

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

Unit

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

Public functions

onEGLContextCreated

Added in 1.0.2
@WorkerThread
fun onEGLContextCreated(eglManager: EGLManager): Unit

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 after GLRenderer.start.

onEGLContextDestroyed

Added in 1.0.2
@WorkerThread
fun onEGLContextDestroyed(eglManager: EGLManager): Unit

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