Stay organized with collections
Save and categorize content based on your preferences.
GLSurfaceView.EGLConfigChooser
public
static
interface
GLSurfaceView.EGLConfigChooser
android.opengl.GLSurfaceView.EGLConfigChooser
|
An interface for choosing an EGLConfig configuration from a list of
potential configurations.
This interface must be implemented by clients wishing to call
GLSurfaceView.setEGLConfigChooser(EGLConfigChooser)
Summary
Public methods
chooseConfig
public abstract EGLConfig chooseConfig (EGL10 egl,
EGLDisplay display)
Choose a configuration from the list. Implementors typically
implement this method by calling
EGL10.eglChooseConfig
and iterating through the results. Please consult the
EGL specification available from The Khronos Group to learn how to call eglChooseConfig.
Parameters |
egl |
EGL10 : the EGL10 for the current display. |
display |
EGLDisplay : the current display. |
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.EGLConfigChooser\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nGLSurfaceView.EGLConfigChooser\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/opengl/GLSurfaceView.EGLConfigChooser \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nGLSurfaceView.EGLConfigChooser\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------|\n| android.opengl.GLSurfaceView.EGLConfigChooser |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface for choosing an EGLConfig configuration from a list of\npotential configurations.\n\n\nThis interface must be implemented by clients wishing to call\n[GLSurfaceView.setEGLConfigChooser(EGLConfigChooser)](/reference/android/opengl/GLSurfaceView#setEGLConfigChooser(android.opengl.GLSurfaceView.EGLConfigChooser))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[EGLConfig](/reference/javax/microedition/khronos/egl/EGLConfig) | ` `[chooseConfig](/reference/android/opengl/GLSurfaceView.EGLConfigChooser#chooseConfig(javax.microedition.khronos.egl.EGL10,%20javax.microedition.khronos.egl.EGLDisplay))`(`[EGL10](/reference/javax/microedition/khronos/egl/EGL10)` egl, `[EGLDisplay](/reference/javax/microedition/khronos/egl/EGLDisplay)` display) ` Choose a configuration from the list. |\n\nPublic methods\n--------------\n\n### chooseConfig\n\nAdded in [API level 3](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract EGLConfig chooseConfig (EGL10 egl, \n EGLDisplay display)\n```\n\nChoose a configuration from the list. Implementors typically\nimplement this method by calling\n[EGL10.eglChooseConfig](/reference/javax/microedition/khronos/egl/EGL10#eglChooseConfig(javax.microedition.khronos.egl.EGLDisplay,%20int[],%20javax.microedition.khronos.egl.EGLConfig[],%20int,%20int[])) and iterating through the results. Please consult the\nEGL specification available from The Khronos Group to learn how to call eglChooseConfig.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------|\n| `egl` | `EGL10`: the EGL10 for the current display. \u003cbr /\u003e |\n| `display` | `EGLDisplay`: the current display. \u003cbr /\u003e |\n\n| Returns ||\n|------------------------------------------------------------------|----------------------------------|\n| [EGLConfig](/reference/javax/microedition/khronos/egl/EGLConfig) | the chosen configuration. \u003cbr /\u003e |"]]