Code example for EGLContext
* Before we can issue GL commands, we need to make sure
* the context is current and bound to a surface.
egl.eglMakeCurrent(dpy, surface, surface, context);
* Get to the appropriate GL interface.
* This is simply done by casting the GL context to either
* GL10 or GL11.
gl = (GL10)context.getGL();
* By default, OpenGL enables features that improve quality
* but reduce performance. One might want to tweak that
* especially on software renderer.