Stay organized with collections
Save and categorize content based on your preferences.
GLSurfaceView.EGLWindowSurfaceFactory
public
static
interface
GLSurfaceView.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)
Summary
Public methods
createWindowSurface
public abstract 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
public abstract void destroySurface (EGL10 egl,
EGLDisplay display,
EGLSurface surface)
Parameters |
egl |
EGL10 |
display |
EGLDisplay |
surface |
EGLSurface |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# GLSurfaceView.EGLWindowSurfaceFactory\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nGLSurfaceView.EGLWindowSurfaceFactory\n=====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/opengl/GLSurfaceView.EGLWindowSurfaceFactory \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nGLSurfaceView.EGLWindowSurfaceFactory\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------|\n| android.opengl.GLSurfaceView.EGLWindowSurfaceFactory |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface for customizing the eglCreateWindowSurface and eglDestroySurface calls.\n\n\nThis interface must be implemented by clients wishing to call\n[GLSurfaceView.setEGLWindowSurfaceFactory(EGLWindowSurfaceFactory)](/reference/android/opengl/GLSurfaceView#setEGLWindowSurfaceFactory(android.opengl.GLSurfaceView.EGLWindowSurfaceFactory))\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[EGLSurface](/reference/javax/microedition/khronos/egl/EGLSurface) | ` `[createWindowSurface](/reference/android/opengl/GLSurfaceView.EGLWindowSurfaceFactory#createWindowSurface(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLConfig,%20java.lang.Object))`(`[EGL10](/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](/reference/javax/microedition/khronos/egl/EGLDisplay)` display, `[EGLConfig](/reference/javax/microedition/khronos/egl/EGLConfig)` config, `[Object](/reference/java/lang/Object)` nativeWindow) ` |\n| ` abstract void` | ` `[destroySurface](/reference/android/opengl/GLSurfaceView.EGLWindowSurfaceFactory#destroySurface(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLSurface))`(`[EGL10](/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](/reference/javax/microedition/khronos/egl/EGLDisplay)` display, `[EGLSurface](/reference/javax/microedition/khronos/egl/EGLSurface)` surface) ` |\n\nPublic methods\n--------------\n\n### createWindowSurface\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract EGLSurface createWindowSurface (EGL10 egl, \n EGLDisplay display, \n EGLConfig config, \n Object nativeWindow)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------|---------------------|\n| `egl` | `EGL10` \u003cbr /\u003e |\n| `display` | `EGLDisplay` \u003cbr /\u003e |\n| `config` | `EGLConfig` \u003cbr /\u003e |\n| `nativeWindow` | `Object` \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------|---------------------------------------------------|\n| [EGLSurface](/reference/javax/microedition/khronos/egl/EGLSurface) | null if the surface cannot be constructed. \u003cbr /\u003e |\n\n### destroySurface\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void destroySurface (EGL10 egl, \n EGLDisplay display, \n EGLSurface surface)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------|\n| `egl` | `EGL10` \u003cbr /\u003e |\n| `display` | `EGLDisplay` \u003cbr /\u003e |\n| `surface` | `EGLSurface` \u003cbr /\u003e |"]]