Skip to content

Most visited

Recently visited

navigation
Added in API level 17

EGLObjectHandle

public abstract class EGLObjectHandle
extends Object

java.lang.Object
   ↳ android.opengl.EGLObjectHandle
Known Direct Subclasses


Base class for wrapped EGL objects.

Summary

Protected constructors

EGLObjectHandle(int handle)

This constructor was deprecated in API level 21. Use EGLObjectHandle(long) instead. Handles on 64 bit platforms will be wider than java ints.

EGLObjectHandle(long handle)

Public methods

int getHandle()

This method was deprecated in API level 21. Use getNativeHandle() instead. Handles on 64 bit platforms will be wider than java ints.

long getNativeHandle()

Returns the native handle of the wrapped EGL object.

int hashCode()

Returns an integer hash code for this object.

Inherited methods

From class java.lang.Object

Protected constructors

EGLObjectHandle

Added in API level 17
EGLObjectHandle (int handle)

This constructor was deprecated in API level 21.
Use EGLObjectHandle(long) instead. Handles on 64 bit platforms will be wider than java ints.

Parameters
handle int

EGLObjectHandle

Added in API level 21
EGLObjectHandle (long handle)

Parameters
handle long

Public methods

getHandle

Added in API level 17
int getHandle ()

This method was deprecated in API level 21.
Use getNativeHandle() instead. Handles on 64 bit platforms will be wider than java ints.

Returns
int

getNativeHandle

Added in API level 21
long getNativeHandle ()

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;

Returns
long the native handle of the wrapped EGL object.

hashCode

Added in API level 17
int hashCode ()

Returns an integer hash code for this object. By contract, any two objects for which equals(Object) returns true must return the same hash code value. This means that subclasses of Object usually override both methods or neither method.

Note that hash values must not change over time unless information used in equals comparisons also changes.

See Writing a correct hashCode method if you intend implementing your own hashCode method.

Returns
int this object's hash code.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.