This extension adds a new function which provides an alternative to eglSwapBuffers. eglSwapBuffersRegion2NOK 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.
The new parameters allow users to declare the region of the surface that has been updated. The implementation uses this information to transfer the updated region to the front buffer. Only the pixels within the specified region are copied; any rendering outside that region will not become visible on the window surface. This in contrast with the EGL_NOK_swap_region extension which treats the modified region only as a hint.
This functional change is aimed at further reducing the processing and bandwidth requirements of optimizations of applications whose graphics are commonly subjected to region-based changes. Specifically, this extension enables partial surface updates without requiring the use of preserved swaps.
Requires EGL 1..
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | eglSwapBuffersRegion2NOK(long dpy, long surface, int[] rects)
Array version of: |
| public static int |
| NOKSwapRegion2 | back to summary |
|---|---|
| protected NOKSwapRegion2() | |
| eglSwapBuffersRegion2NOK | back to summary |
|---|---|
public static boolean eglSwapBuffersRegion2NOK(long dpy, long surface, IntBuffer rects)
| |
| eglSwapBuffersRegion2NOK | back to summary |
|---|---|
| public static boolean eglSwapBuffersRegion2NOK(long dpy, long surface, int[] rects) Array version of:
| |
| neglSwapBuffersRegion2NOK | back to summary |
|---|---|
| public static int neglSwapBuffersRegion2NOK(long dpy, long surface, int numRects, long rects) | |