FileDocCategorySizeDatePackage
EGLContext.javaAPI DocphoneME MR2 API (J2ME)2196Wed May 02 18:00:46 BST 2007javax.microedition.khronos.egl

EGLContext

public abstract class EGLContext extends 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.

Fields Summary
Constructors Summary
EGLContext()

    
Methods Summary
public static synchronized EGLgetEGL()
Returns an EGL object.

return
an EGL instance.

        return EGL10Impl.getInstance();
    
public abstract GLgetGL()
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.

return
a GL instance that implements all available extension interfaces.