javax.microedition.khronos.egl
Class EGLContext

java.lang.Object
  extended by javax.microedition.khronos.egl.EGLContext

public abstract class EGLContext
extends Object

Defines a class encapsulating the EGL context. The class also contains static methods used to obtain instances of the EGL, GL and VG 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.

Since:
BlackBerry API 5.0.0

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:
The EGL instance.
Throws:
UnsupportedOperationException - if the device does not support EGL (OpenGL ES or OpenVG).
Since:
BlackBerry API 5.0.0

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.
Throws:
UnsupportedOperationException - if the device does not support OpenGL ES)
IllegalStateException - if this context is not an OpenGL ES context.
Since:
BlackBerry API 5.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal