eglSwapBuffers
- post EGL surface color buffer to a native window
EGLBoolean eglSwapBuffers(EGLDisplay display, EGLSurface surface)
display
Specifies the EGL display connection.
surface
Specifies 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.
EGL_CONTEXT_LOST
is generated if a power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering.
Copyright © 2003-2004 Silicon Graphics, Inc.
This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.