Esempio n. 1
0
void
TopCanvas::Flip()
{
#ifdef HAVE_EGL
  if (OpenGL::egl) {
    /* if native EGL support was detected, we can circumvent the JNI
       call */
    EGLSwapBuffers();
    return;
  }
#endif

#ifdef ANDROID
  native_view->swap();
#elif defined(ENABLE_OPENGL)
  ::SDL_GL_SwapBuffers();
#else
  ::SDL_Flip(surface);
#endif
}
Esempio n. 2
0
File: egl-x11.cpp Progetto: hglm/sre
void sreBackendGLES2X11::GLSwapBuffers() {
    EGLSwapBuffers();
}
Esempio n. 3
0
void sreBackendGLES2RPIFB::GLSwapBuffers() {
    EGLSwapBuffers();
}