Top Description Fields Constructors Methods
org.lwjgl.egl

public Class KHRPartialUpdate

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

Native bindings to the KHR_partial_update extension.

The aim of this extension is to allow efficient partial updates for postable surfaces. It allows implementations to completely avoid processing areas of the surface which have not changed between frames, allowing increased efficiency.

It does so by providing information and guarantees about the content of the current back buffer which allow the application to "repair" only areas that have become out of date since the particular back buffer was last used.

The information provided is in the form of the "age" of the buffer, that is, how many frames ago it was last used as the back buffer for the surface. If the application tracks what changes it has made to the surface since this back buffer was last used, it can bring the entire back buffer up to date by only re-rendering the areas it knows to be out of date.

Use of this extension provides a more efficient alternative to EGL_BUFFER_PRESERVED swap behaviour. EGL_BUFFER_PRESERVED typically implies an expensive full-frame copy at the beginning of the frame, as well as a dependency on the previous frame. Usage of this extension avoids both and requires only the necessary updates to a back buffer to be made.

Requires EGL 1.4.

Field Summary

Modifier and TypeField and Description
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

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

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

Array version of: SetDamageRegionKHR

public static int
neglSetDamageRegionKHR(long dpy, long surface, long rects, int n_rects)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_BUFFER_AGE_KHRback to summary
public static final int EGL_BUFFER_AGE_KHR

Constructor Detail

KHRPartialUpdateback to summary
protected KHRPartialUpdate()

Method Detail

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

Array version of: SetDamageRegionKHR

Annotations
@NativeType:EGLBoolean
neglSetDamageRegionKHRback to summary
public static int neglSetDamageRegionKHR(long dpy, long surface, long rects, int n_rects)