Android APIs
public abstract class

EGLObjectHandle

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

Class Overview

Base class for wrapped EGL objects.

Summary

Protected Constructors
EGLObjectHandle(int handle)
EGLObjectHandle(long handle)
Public Methods
int getHandle()
long getNativeHandle()
Returns the native handle of the wrapped EGL object.
int hashCode()
Returns an integer hash code for this object.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected EGLObjectHandle (int handle)

Added in API level 17

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

protected EGLObjectHandle (long handle)

Added in API level 21

Public Methods

public int getHandle ()

Added in API level 17

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

public long getNativeHandle ()

Added in API level 21

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
  • the native handle of the wrapped EGL object.

public int hashCode ()

Added in API level 17

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
  • this object's hash code.