コード例 #1
0
ファイル: TopCanvas.cpp プロジェクト: damianob/xcsoar
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
}
コード例 #2
0
ファイル: egl-x11.cpp プロジェクト: hglm/sre
void sreBackendGLES2X11::GLSwapBuffers() {
    EGLSwapBuffers();
}
コード例 #3
0
ファイル: egl-rpi-fb.cpp プロジェクト: hglm/sre
void sreBackendGLES2RPIFB::GLSwapBuffers() {
    EGLSwapBuffers();
}