public EGLDisplay eglGetCurrentDisplay() {
    begin("eglGetCurrentDisplay");
    end();

    EGLDisplay result = mEgl10.eglGetCurrentDisplay();
    returns(result);

    checkError();
    return result;
  }
Ejemplo n.º 2
0
 public void swapBuffers() {
   EGL10 egl = (EGL10) EGLContext.getEGL();
   EGLDisplay display = egl.eglGetCurrentDisplay();
   EGLSurface surface = egl.eglGetCurrentSurface(EGL10.EGL_READ);
   egl.eglSwapBuffers(display, surface);
 }