Most visited

Recently visited

Added in API level 5

GLSurfaceView.EGLWindowSurfaceFactory

public static interface GLSurfaceView.EGLWindowSurfaceFactory

android.opengl.GLSurfaceView.EGLWindowSurfaceFactory


用于自定义eglCreateWindowSurface和eglDestroySurface调用的接口。

该接口必须由希望致电 setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory)客户实施

Summary

Public methods

abstract EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, Object nativeWindow)
abstract void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface)

Public methods

createWindowSurface

Added in API level 5
EGLSurface createWindowSurface (EGL10 egl, 
                EGLDisplay display, 
                EGLConfig config, 
                Object nativeWindow)

Parameters
egl EGL10
display EGLDisplay
config EGLConfig
nativeWindow Object
Returns
EGLSurface null if the surface cannot be constructed.

destroySurface

Added in API level 5
void destroySurface (EGL10 egl, 
                EGLDisplay display, 
                EGLSurface surface)

Parameters
egl EGL10
display EGLDisplay
surface EGLSurface

Hooray!