Code example for EGLContext

Methods: getGL

		if (this.mEGLSurface == null || this.mEGLSurface == EGL10.EGL_NO_SURFACE) {
			throw new RuntimeException("createSurface failed");
		/* Before we can issue GL commands, we need to make sure the context is current and bound to a surface. */ 
		if (!this.mEGL.eglMakeCurrent(this.mEGLDisplay, this.mEGLSurface, this.mEGLSurface, this.mEGLContext)) {
			throw new RuntimeException("eglMakeCurrent failed.");
		return this.mEGLContext.getGL();
	 * Display the current render surface. 
	 * @return false if the context has been lost. 
	public boolean swapBuffers() { 
		this.mEGL.eglSwapBuffers(this.mEGLDisplay, this.mEGLSurface);
		/* Always check for EGL_CONTEXT_LOST, which means the context and all