public abstract class

EGLContext

extends Object
java.lang.Object
   ↳ javax.microedition.khronos.egl.EGLContext

Class Overview

A class encapsulating the EGL context. The class also contains static methods used to obtain instances of the EGL and GL interfaces.

An EGLContext is obtained from EGL using the eglCreateContext function, and destroyed using the eglDestroyContext function. Its main role is as a parameter to eglMakeCurrent.

Summary

Public Methods
synchronized static EGL getEGL()
Returns an EGL object.
abstract GL getGL()
Returns a GL object associated with this EGL context.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static synchronized EGL getEGL ()

Returns an EGL object.

Returns
  • an EGL instance.

public abstract GL getGL ()

Returns a GL object associated with this EGL context.

To call extension methods, cast the returned object to the interface type that contains the methods of the extension.

Returns
  • a GL instance that implements all available extension interfaces.