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);
Connect your IDE to all the code out there  Get Codota for Java