|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.khronos.egl.EGLContext
public abstract class EGLContext
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
.
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 |
---|
public static EGL getEGL()
EGL
object.
EGL
instance.
UnsupportedOperationException
- if the device does not support EGL (OpenGL ES or OpenVG).public abstract GL getGL()
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.
GL
instance that implements all available extension interfaces.
UnsupportedOperationException
- if the device does not support OpenGL ES)
IllegalStateException
- if this context
is not an OpenGL ES context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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