Top Description Constructors Methods
org.lwjgl.egl

public Class ANDROIDPresentationTime

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the ANDROID_presentation_time extension.

Often when rendering a sequence of images, there is some time at which each image is intended to be presented to the viewer. This extension allows this desired presentation time to be specified for each frame rendered to an EGLSurface, allowing the native window system to use it.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
eglPresentationTimeANDROID(long
the EGLDisplay
dpy
,
long
the EGLSurface
surface
,
long
the presentation time
time
)

Specifies the time at which the current color buffer of surface should be presented to the viewer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ANDROIDPresentationTimeback to summary
protected ANDROIDPresentationTime()

Method Detail

eglPresentationTimeANDROIDback to summary
public static boolean eglPresentationTimeANDROID(long dpy, long surface, long time)

Specifies the time at which the current color buffer of surface should be presented to the viewer. The time parameter should be a time in nanoseconds, but the exact meaning of the time depends on the native window system's use of the presentation time. In situations where an absolute time is needed such as displaying the color buffer on a display device, the time should correspond to the system monotonic up-time clock. For situations in which an absolute time is not needed such as using the color buffer for video encoding, the presentation time of the first frame may be arbitrarily chosen and those of subsequent frames chosen relative to that of the first frame.

The presentation time may be set multiple times, with each call to eglPresentationTimeANDROID overriding prior calls. Setting the presentation time alone does not cause the color buffer to be made visible, but if the color buffer is subsequently posted to a native window or copied to a native pixmap then the presentation time of the surface at that time may be passed along for the native window system to use.

If the surface presentation time is successfully set, TRUE is returned. Otherwise FALSE is returned and an appropriate error is set. If dpy is not the name of a valid, initialized EGLDisplay, an BAD_DISPLAY error is generated. If surface is not a valid EGLSurface then an BAD_SURFACE error is generated.

Parameters
dpy:long

the EGLDisplay

surface:long

the EGLSurface

time:long

the presentation time

Annotations
@NativeType:EGLBoolean