Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EGLKHRFenceSync

extends Object
Class Inheritance
Imports
org.lwjgl.LWJGLException, .MemoryUtil, java.nio.IntBuffer

EGL_KHR_fence_sync wrapper class.

Field Summary

Modifier and TypeField and Description
public static final int
EGL_CONDITION_SATISFIED_KHR

Returned by eglClientWaitSyncKHR:

public static final long
EGL_FOREVER_KHR

Accepted in the <timeout> parameter of eglClientWaitSyncKHR:

public static final long
EGL_NO_SYNC_KHR

Returned by eglCreateSyncKHR in the event of an error:

public static final int
EGL_SIGNALED_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:

public static final int
EGL_SYNC_CONDITION_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

public static final int
EGL_SYNC_FENCE_KHR

Accepted by the <type> parameter of eglCreateSyncKHR, and returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_TYPE_KHR:

public static final int
EGL_SYNC_FLUSH_COMMANDS_BIT_KHR

Accepted in the <flags> parameter of eglClientWaitSyncKHR:

public static final int
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_CONDITION_KHR:

public static final int
EGL_SYNC_STATUS_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

public static final int
EGL_SYNC_TYPE_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

public static final int
EGL_TIMEOUT_EXPIRED_KHR

Returned by eglClientWaitSyncKHR:

public static final int
EGL_UNSIGNALED_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the sync object status
eglClientWaitSyncKHR
(EGLDisplay dpy, EGLSyncKHR
the sync object
sync
,
int
the block flags
flags
,
long
the block timeout
timeout
)

Blocks the calling thread until the specified sync object is signaled, or until a specified timeout value expires.

public static EGLSyncKHR

Returns:

the created fence sync object
eglCreateSyncKHR
(EGLDisplay
the EGL display
dpy
,
int
the sync type
type
,
IntBuffer
an attribute list (may be null)
attrib_list
)

Creates a fence sync object for the specified EGL display and returns a handle to the new object.

public static void
eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR
the sync object
sync
)

Destroys an existing sync object.

public static int

Returns:

the attribute value
eglGetSyncAttribKHR
(EGLDisplay dpy, EGLSyncKHR
the sync object
sync
,
int
the attribute to query
attribute
)

Returns the value of the sync object attribute.

private static native void
private static native int
neglClientWaitSyncKHR(long dpy_ptr, long sync_ptr, int flags, long timeout)

private static native long
neglCreateSyncKHR(long dpy_ptr, int type, long attrib_list)

private static native boolean
neglDestroySyncKHR(long dpy_ptr, long sync_ptr)

private static native boolean
neglGetSyncAttribKHR(long dpy_ptr, long sync_ptr, int attribute, long value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_CONDITION_SATISFIED_KHRback to summary
public static final int EGL_CONDITION_SATISFIED_KHR

Returned by eglClientWaitSyncKHR:

EGL_FOREVER_KHRback to summary
public static final long EGL_FOREVER_KHR

Accepted in the <timeout> parameter of eglClientWaitSyncKHR:

EGL_NO_SYNC_KHRback to summary
public static final long EGL_NO_SYNC_KHR

Returned by eglCreateSyncKHR in the event of an error:

EGL_SIGNALED_KHRback to summary
public static final int EGL_SIGNALED_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:

EGL_SYNC_CONDITION_KHRback to summary
public static final int EGL_SYNC_CONDITION_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

EGL_SYNC_FENCE_KHRback to summary
public static final int EGL_SYNC_FENCE_KHR

Accepted by the <type> parameter of eglCreateSyncKHR, and returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_TYPE_KHR:

EGL_SYNC_FLUSH_COMMANDS_BIT_KHRback to summary
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_KHR

Accepted in the <flags> parameter of eglClientWaitSyncKHR:

EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHRback to summary
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_CONDITION_KHR:

EGL_SYNC_STATUS_KHRback to summary
public static final int EGL_SYNC_STATUS_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

EGL_SYNC_TYPE_KHRback to summary
public static final int EGL_SYNC_TYPE_KHR

Accepted by the <attribute> parameter of eglGetSyncAttribKHR:

EGL_TIMEOUT_EXPIRED_KHRback to summary
public static final int EGL_TIMEOUT_EXPIRED_KHR

Returned by eglClientWaitSyncKHR:

EGL_UNSIGNALED_KHRback to summary
public static final int EGL_UNSIGNALED_KHR

Returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:

Constructor Detail

EGLKHRFenceSyncback to summary
private EGLKHRFenceSync()

Method Detail

eglClientWaitSyncKHRback to summary
public static int eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, int flags, long timeout) throws LWJGLException

Blocks the calling thread until the specified sync object is signaled, or until a specified timeout value expires.

Parameters
sync:EGLSyncKHR

the sync object

flags:int

the block flags

timeout:long

the block timeout

Returns:int

the sync object status

Exceptions
LWJGLException:
if an EGL error occurs.
eglCreateSyncKHRback to summary
public static EGLSyncKHR eglCreateSyncKHR(EGLDisplay dpy, int type, IntBuffer attrib_list) throws LWJGLException

Creates a fence sync object for the specified EGL display and returns a handle to the new object.

Parameters
dpy:EGLDisplay

the EGL display

type:int

the sync type

attrib_list:IntBuffer

an attribute list (may be null)

Returns:EGLSyncKHR

the created fence sync object

Exceptions
LWJGLException:
if an EGL error occurs.
eglDestroySyncKHRback to summary
public static void eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) throws LWJGLException

Destroys an existing sync object.

Parameters
sync:EGLSyncKHR

the sync object

Exceptions
LWJGLException:
if an EGL error occurs.
eglGetSyncAttribKHRback to summary
public static int eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, int attribute) throws LWJGLException

Returns the value of the sync object attribute.

Parameters
sync:EGLSyncKHR

the sync object

attribute:int

the attribute to query

Returns:int

the attribute value

Exceptions
LWJGLException:
if an EGL error occurs.
initNativeStubsback to summary
private static native void initNativeStubs()
neglClientWaitSyncKHRback to summary
private static native int neglClientWaitSyncKHR(long dpy_ptr, long sync_ptr, int flags, long timeout)
neglCreateSyncKHRback to summary
private static native long neglCreateSyncKHR(long dpy_ptr, int type, long attrib_list)
neglDestroySyncKHRback to summary
private static native boolean neglDestroySyncKHR(long dpy_ptr, long sync_ptr)
neglGetSyncAttribKHRback to summary
private static native boolean neglGetSyncAttribKHR(long dpy_ptr, long sync_ptr, int attribute, long value)