GLSurfaceView.EGLWindowSurfaceFactory
public static interface GLSurfaceView.EGLWindowSurfaceFactory
| android.opengl.GLSurfaceView.EGLWindowSurfaceFactory |
用于自定义eglCreateWindowSurface和eglDestroySurface调用的接口。
该接口必须由希望致电 setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory)客户实施
Summary
Public methods
createWindowSurface
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
void destroySurface (EGL10 egl,
EGLDisplay display,
EGLSurface surface)
| Parameters |
egl |
EGL10
|
display |
EGLDisplay
|
surface |
EGLSurface
|