Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2007 Sun Microsystems, Inc. All rights reserved.

The Java™ Binding for the OpenGL® ES API

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
equals, 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.

Final Release, Oct 2006

This specification is protected under the JSPA version 2.6.
Copyright © 2006 Sun Microsystems, Inc. 4150 Network Circle, California, 95054, U.S.A.
All Rights Reserved. Use is subject to license terms.
Copyright © 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 239 specification.