Stay organized with collections
Save and categorize content based on your preferences.
GLSurfaceView.EGLContextFactory
public
static
interface
GLSurfaceView.EGLContextFactory
android.opengl.GLSurfaceView.EGLContextFactory
|
An interface for customizing the eglCreateContext and eglDestroyContext calls.
This interface must be implemented by clients wishing to call
GLSurfaceView.setEGLContextFactory(EGLContextFactory)
Summary
Public methods
destroyContext
public abstract void destroyContext (EGL10 egl,
EGLDisplay display,
EGLContext context)
Parameters |
egl |
EGL10 |
display |
EGLDisplay |
context |
EGLContext |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# GLSurfaceView.EGLContextFactory\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nGLSurfaceView.EGLContextFactory\n===============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/opengl/GLSurfaceView.EGLContextFactory \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nGLSurfaceView.EGLContextFactory\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.opengl.GLSurfaceView.EGLContextFactory |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface for customizing the eglCreateContext and eglDestroyContext calls.\n\n\nThis interface must be implemented by clients wishing to call\n[GLSurfaceView.setEGLContextFactory(EGLContextFactory)](/reference/android/opengl/GLSurfaceView#setEGLContextFactory(android.opengl.GLSurfaceView.EGLContextFactory))\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[EGLContext](/reference/javax/microedition/khronos/egl/EGLContext) | ` `[createContext](/reference/android/opengl/GLSurfaceView.EGLContextFactory#createContext(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLConfig))`(`[EGL10](/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](/reference/javax/microedition/khronos/egl/EGLDisplay)` display, `[EGLConfig](/reference/javax/microedition/khronos/egl/EGLConfig)` eglConfig) ` |\n| ` abstract void` | ` `[destroyContext](/reference/android/opengl/GLSurfaceView.EGLContextFactory#destroyContext(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay,%20javax.microedition.khronos.egl.EGLContext))`(`[EGL10](/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](/reference/javax/microedition/khronos/egl/EGLDisplay)` display, `[EGLContext](/reference/javax/microedition/khronos/egl/EGLContext)` context) ` |\n\nPublic methods\n--------------\n\n### createContext\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract EGLContext createContext (EGL10 egl, \n EGLDisplay display, \n EGLConfig eglConfig)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|---------------------|\n| `egl` | `EGL10` \u003cbr /\u003e |\n| `display` | `EGLDisplay` \u003cbr /\u003e |\n| `eglConfig` | `EGLConfig` \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------|--------|\n| [EGLContext](/reference/javax/microedition/khronos/egl/EGLContext) | \u003cbr /\u003e |\n\n### destroyContext\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void destroyContext (EGL10 egl, \n EGLDisplay display, \n EGLContext context)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------|\n| `egl` | `EGL10` \u003cbr /\u003e |\n| `display` | `EGLDisplay` \u003cbr /\u003e |\n| `context` | `EGLContext` \u003cbr /\u003e |"]]