| |||
| Home > Implementation Information > EGL implementation information on Windows > Synchronization of pixmap surfaces | |||
Pixmap surfaces are supported through the use of graphics
driver Pbuffers. You must use the appropriate
EGL synchronization calls to get OpenGL ES 2.0 to render on to the
native pixmap. This corresponds to the expected use of these calls
in the EGL 1.3 specification.
The call eglWaitNative(EGL_CORE_NATIVE_ENGINE) copies
bitmap data from the native bitmap to the graphics driver Pbuffer before
the OpenGL ES 2.0 API calls are made to render to the Pbuffer.
The calls eglWaitClient(), eglWaitGL() and glFinish() copy
data back from the graphics driver Pbuffer to
the native pixmap after OpenGL ES 2.0 renders to the Pbuffer. Example
code for this synchronization is given in the file example\pixmap\triangle.c.
You must not select a native bitmap into a device context,
else the eglWaitNative() call fails.