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