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!