EGLWindowSurfaceFactory

interface EGLWindowSurfaceFactory
android.opengl.GLSurfaceView.EGLWindowSurfaceFactory

An interface for customizing the eglCreateWindowSurface and eglDestroySurface calls.

This interface must be implemented by clients wishing to call GLSurfaceView#setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory)
Requires API level 5 (Android 2.0, Eclair)

Summary

Public methods
abstract EGLSurface!
createWindowSurface(egl: EGL10!, display: EGLDisplay!, config: EGLConfig!, nativeWindow: Any!)


Requires API level 5 (Android 2.0, Eclair)

abstract Unit
destroySurface(egl: EGL10!, display: EGLDisplay!, surface: EGLSurface!)

Requires API level 5 (Android 2.0, Eclair)

Public methods

createWindowSurface

added in API level 5
abstract fun createWindowSurface(egl: EGL10!, display: EGLDisplay!, config: EGLConfig!, nativeWindow: Any!): EGLSurface!


Requires API level 5 (Android 2.0, Eclair)

Return
EGLSurface!: null if the surface cannot be constructed.

destroySurface

added in API level 5
abstract fun destroySurface(egl: EGL10!, display: EGLDisplay!, surface: EGLSurface!): Unit

Requires API level 5 (Android 2.0, Eclair)