eglSwapBuffers - post EGL surface color buffer to a native window
EGLBoolean eglSwapBuffers(EGLDisplay display,
EGLSurface surface)displaySpecifies the EGL display connection.
surfaceSpecifies the EGL drawing surface whose buffers are to be swapped.
If surface is a window surface, eglSwapBuffers posts its color buffer to the associated native window.
eglSwapBuffers performs an implicit glFlush before it returns. Subsequent GL commands may be issued immediately after calling eglSwapBuffers, but are not executed until the buffer exchange is completed.
If surface is a pixel buffer or a pixmap, eglSwapBuffers has no effect, and no error is generated.
The color buffer of surface is left undefined after calling eglSwapBuffers.
EGL_FALSE is returned if swapping of the surface buffers fails, EGL_TRUE otherwise.
EGL_BAD_DISPLAY is generated if display is not an EGL display connection.
EGL_NOT_INITIALIZED is generated if display has not been initialized.
EGL_BAD_SURFACE is generated if surface is not an EGL drawing surface.
Copyright © 2003 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.