Code example for EGL10

Methods: eglGetCurrentSurfaceeglGetError

0
	public EGLSurface eglGetCurrentSurface (int readdraw) {
		begin("eglGetCurrentSurface"); 
		arg("readdraw", readdraw);
		end(); 
 
		EGLSurface result = mEgl10.eglGetCurrentSurface(readdraw);
		returns(result);
 
		checkError(); 
		return result;
	} 
 
	public EGLDisplay eglGetDisplay (Object native_display) {
		begin("eglGetDisplay"); 
		arg("native_display", native_display);
		end(); 
 
		EGLDisplay result = mEgl10.eglGetDisplay(native_display);
		returns(result);
 
		checkError(); 
		return result;
	} 
 
	public int eglGetError () { 
		begin("eglGetError"); 
		end(); 
 
		int result = mEgl10.eglGetError();
		returns(getErrorString(result));
 
		return result;
	} 
 
	public boolean eglInitialize (EGLDisplay display, int[] major_minor) {
		begin("eglInitialize"); 
		arg("display", display);
		end(); 
		boolean result = mEgl10.eglInitialize(display, major_minor);
		returns(result);
		arg("major_minor", major_minor);
		checkError(); 
		return result;
	} 
 
	public boolean eglMakeCurrent (EGLDisplay display, EGLSurface draw, EGLSurface read, EGLContext context) {
		begin("eglMakeCurrent"); 
		arg("display", display);
		arg("draw", draw);
		arg("read", read);
		arg("context", context);
		end(); 
		boolean result = mEgl10.eglMakeCurrent(display, draw, read, context);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglQueryContext (EGLDisplay display, EGLContext context, int attribute, int[] value) {
		begin("eglQueryContext"); 
		arg("display", display);
		arg("context", context);
		arg("attribute", attribute);
		end(); 
		boolean result = mEgl10.eglQueryContext(display, context, attribute, value);
		returns(value[0]);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public String eglQueryString (EGLDisplay display, int name) {
		begin("eglQueryString"); 
		arg("display", display);
		arg("name", name);
		end(); 
		String result = mEgl10.eglQueryString(display, name);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglQuerySurface (EGLDisplay display, EGLSurface surface, int attribute, int[] value) {
		begin("eglQuerySurface"); 
		arg("display", display);
		arg("surface", surface);
		arg("attribute", attribute);
		end(); 
		boolean result = mEgl10.eglQuerySurface(display, surface, attribute, value);
		returns(value[0]);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglSwapBuffers (EGLDisplay display, EGLSurface surface) {
		begin("eglInitialize"); 
		arg("display", display);
		arg("surface", surface);
		end(); 
		boolean result = mEgl10.eglSwapBuffers(display, surface);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglTerminate (EGLDisplay display) {
		begin("eglTerminate"); 
		arg("display", display);
		end(); 
		boolean result = mEgl10.eglTerminate(display);
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglWaitGL () { 
		begin("eglWaitGL"); 
		end(); 
		boolean result = mEgl10.eglWaitGL();
		returns(result);
		checkError(); 
		return result;
	} 
 
	public boolean eglWaitNative (int engine, Object bindTarget) {
		begin("eglWaitNative"); 
		arg("engine", engine);
		arg("bindTarget", bindTarget);
		end(); 
		boolean result = mEgl10.eglWaitNative(engine, bindTarget);
		returns(result);
		checkError(); 
		return result;
	} 
 
	private void checkError () { 
		int eglError;
		if ((eglError = mEgl10.eglGetError()) != EGL_SUCCESS) {
			String errorMessage = "eglError: " + getErrorString(eglError);
			logLine(errorMessage);
			if (mCheckError) {
				throw new GLException(eglError, errorMessage);
			} 
Connect your IDE to all the code out there  Get Codota for Java