Stay organized with collections
Save and categorize content based on your preferences.
EGLObjectHandle
abstract class EGLObjectHandle
Known Direct Subclasses
EGLConfig |
Wrapper class for native EGLConfig objects.
|
EGLContext |
Wrapper class for native EGLContext objects.
|
EGLDisplay |
Wrapper class for native EGLDisplay objects.
|
EGLImage |
Wrapper class for native EGLImage objects.
|
EGLSurface |
Wrapper class for native EGLSurface objects.
|
EGLSync |
Wrapper class for native EGLSync objects.
|
|
Base class for wrapped EGL objects.
Summary
Public methods |
open Int |
|
open Long |
Returns the native handle of the wrapped EGL object.
|
open Int |
|
Protected constructors
EGLObjectHandle
protected EGLObjectHandle(handle: Int)
Deprecated: Use EGLObjectHandle(long)
instead. Handles on 64 bit platforms will be wider than java ints.
EGLObjectHandle
protected EGLObjectHandle(handle: Long)
Public methods
getHandle
open fun getHandle(): Int
Deprecated: Use getNativeHandle()
instead. Handles on 64 bit platforms will be wider than java ints.
getNativeHandle
open fun getNativeHandle(): Long
Returns the native handle of the wrapped EGL object. This handle can be cast to the corresponding native type on the native side. For example, EGLDisplay dpy = (EGLDisplay)handle;
Return |
Long |
the native handle of the wrapped EGL object. |
hashCode
open fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
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,["# EGLObjectHandle\n\nAdded in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEGLObjectHandle\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/opengl/EGLObjectHandle \"View this page in Java\") \n\n```\nabstract class EGLObjectHandle\n```\n\n|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.opengl.EGLObjectHandle](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [EGLConfig](/reference/kotlin/android/opengl/EGLConfig), [EGLContext](/reference/kotlin/android/opengl/EGLContext), [EGLDisplay](/reference/kotlin/android/opengl/EGLDisplay), [EGLImage](/reference/kotlin/android/opengl/EGLImage), [EGLSurface](/reference/kotlin/android/opengl/EGLSurface), [EGLSync](/reference/kotlin/android/opengl/EGLSync) |-----------------------------------------------------------|----------------------------------------------| | [EGLConfig](/reference/kotlin/android/opengl/EGLConfig) | Wrapper class for native EGLConfig objects. | | [EGLContext](/reference/kotlin/android/opengl/EGLContext) | Wrapper class for native EGLContext objects. | | [EGLDisplay](/reference/kotlin/android/opengl/EGLDisplay) | Wrapper class for native EGLDisplay objects. | | [EGLImage](/reference/kotlin/android/opengl/EGLImage) | Wrapper class for native EGLImage objects. | | [EGLSurface](/reference/kotlin/android/opengl/EGLSurface) | Wrapper class for native EGLSurface objects. | | [EGLSync](/reference/kotlin/android/opengl/EGLSync) | Wrapper class for native EGLSync objects. | |\n\nBase class for wrapped EGL objects.\n\nSummary\n-------\n\n| Protected constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [EGLObjectHandle](#EGLObjectHandle(kotlin.Int))`(`handle:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| [EGLObjectHandle](#EGLObjectHandle(kotlin.Long))`(`handle:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getHandle](#getHandle())`()` \u003cbr /\u003e |\n| open [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getNativeHandle](#getNativeHandle())`()` Returns the native handle of the wrapped EGL object. |\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n\nProtected constructors\n----------------------\n\n### EGLObjectHandle\n\nAdded in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected EGLObjectHandle(handle: Int)\n```\n\n**Deprecated:** *Use [EGLObjectHandle(long)](#EGLObjectHandle(kotlin.Long)) instead. Handles on 64 bit platforms will be wider than java ints.* \n\n### EGLObjectHandle\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected EGLObjectHandle(handle: Long)\n```\n\nPublic methods\n--------------\n\n### getHandle\n\nAdded in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getHandle(): Int\n```\n\n**Deprecated:** *Use [getNativeHandle()](#getNativeHandle()) instead. Handles on 64 bit platforms will be wider than java ints.* \n\n### getNativeHandle\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getNativeHandle(): Long\n```\n\nReturns the native handle of the wrapped EGL object. This handle can be cast to the corresponding native type on the native side. For example, EGLDisplay dpy = (EGLDisplay)handle;\n\n| Return ||\n|------------------------------------------------------------------------------|----------------------------------------------|\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | the native handle of the wrapped EGL object. |\n\n### hashCode\n\nAdded in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun hashCode(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a hash code value for this object. |"]]