The Java™ Binding for the OpenGL® ES API v1.0.1

javax.microedition.khronos.egl
Class EGLContext

java.lang.Object
  extended byjavax.microedition.khronos.egl.EGLContext

public abstract class EGLContext
extends java.lang.Object

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.


Method Summary
static EGL getEGL()
          Returns an EGL object.
abstract  GL getGL()
          Returns a GL object associated with this EGL context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEGL

public static EGL getEGL()
Returns an EGL object.

Returns:
an EGL instance.

getGL

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.

Maintenance Release
May 15, 2007

This specification is protected under the JSPA version 2.6.
Copyright © 2006-2007 Sun Microsystems, Inc. 4150 Network Circle, California, 95054, U.S.A.
All Rights Reserved. Use is subject to license terms.