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 |
@WorkerThreadCallback invoked on the backing thread after EGL dependencies are initialized. |
abstract void |
@WorkerThreadCallback invoked on the backing thread before EGL dependencies are about to be torn down. |
Public methods
onEGLContextCreated
@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 after GLRenderer.start.
onEGLContextDestroyed
@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.