summaryrefslogtreecommitdiffstats
path: root/include/EGL
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-06 22:01:35 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-13 20:30:45 -0400
commit52c554a79d3ed3104a9f7d112faa9129073b5a25 (patch)
treed4b4f76dd045425751065b0679131ba3d8a5350b /include/EGL
parent13ef7a4be8ecfd87a09ef1cfa48348297ed7b0e3 (diff)
downloadexternal_mesa3d-52c554a79d3ed3104a9f7d112faa9129073b5a25.zip
external_mesa3d-52c554a79d3ed3104a9f7d112faa9129073b5a25.tar.gz
external_mesa3d-52c554a79d3ed3104a9f7d112faa9129073b5a25.tar.bz2
egl: Implement EGL_NOK_swap_region
This extension adds a new function which provides an alternative to eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in addition to those in eglSwapBuffers. The new parameters consist of a pointer to a list of 4-integer blocks defining rectangles (x, y, width, height) and an integer specifying the number of rectangles in the list.
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglext.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h
index a9e598d..61626d2 100644
--- a/include/EGL/eglext.h
+++ b/include/EGL/eglext.h
@@ -227,6 +227,18 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOPYCONTEXTMESA) (EGLDisplay dpy, EGLCont
#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
#endif
+
+#ifndef EGL_NOK_swap_region
+#define EGL_NOK_swap_region 1
+
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
+#endif
+
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
+#endif
+
+
#ifdef __cplusplus
}
#endif