Top Description Constructors Methods
org.lwjgl.egl

public Class NOKSwapRegion2

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the NOK_swap_region2 extension.

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.4.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
eglSwapBuffersRegion2NOK(long dpy, long surface, IntBuffer rects)

public static boolean
eglSwapBuffersRegion2NOK(long dpy, long surface, int[] rects)

Array version of: SwapBuffersRegion2NOK

public static int
neglSwapBuffersRegion2NOK(long dpy, long surface, int numRects, long rects)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NOKSwapRegion2back to summary
protected NOKSwapRegion2()

Method Detail

eglSwapBuffersRegion2NOKback to summary
public static boolean eglSwapBuffersRegion2NOK(long dpy, long surface, IntBuffer rects)
Annotations
@NativeType:EGLBoolean
eglSwapBuffersRegion2NOKback to summary
public static boolean eglSwapBuffersRegion2NOK(long dpy, long surface, int[] rects)

Array version of: SwapBuffersRegion2NOK

Annotations
@NativeType:EGLBoolean
neglSwapBuffersRegion2NOKback to summary
public static int neglSwapBuffersRegion2NOK(long dpy, long surface, int numRects, long rects)