From 52c554a79d3ed3104a9f7d112faa9129073b5a25 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Thu, 6 May 2010 22:01:35 -0400 Subject: 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. --- include/EGL/eglext.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/EGL') diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index a9e598d6dd6..61626d20df6 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 -- cgit v1.2.3