Added in API level 5

EGLContextFactory


interface EGLContextFactory
android.opengl.GLSurfaceView.EGLContextFactory

An interface for customizing the eglCreateContext and eglDestroyContext calls.

This interface must be implemented by clients wishing to call GLSurfaceView.setEGLContextFactory(EGLContextFactory)

Summary

Public methods
abstract EGLContext!
createContext(egl: EGL10!, display: EGLDisplay!, eglConfig: EGLConfig!)

abstract Unit
destroyContext(egl: EGL10!, display: EGLDisplay!, context: EGLContext!)

Public methods

createContext

Added in API level 5
abstract fun createContext(
    egl: EGL10!,
    display: EGLDisplay!,
    eglConfig: EGLConfig!
): EGLContext!

destroyContext

Added in API level 5
abstract fun destroyContext(
    egl: EGL10!,
    display: EGLDisplay!,
    context: EGLContext!
): Unit