to top
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)
Public Methods
int getHandle()
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

Public Methods

public int getHandle ()

Added in API level 17

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.