Package org.lwjgl.opengles
Class EGLKHRFenceSync
java.lang.Object
org.lwjgl.opengles.EGLKHRFenceSync
EGL_KHR_fence_sync wrapper class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReturned by eglClientWaitSyncKHR:static final longAccepted in the <timeout> parameter of eglClientWaitSyncKHR:static final longReturned by eglCreateSyncKHR in the event of an error:static final intReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:static final intAccepted by the <attribute> parameter of eglGetSyncAttribKHR:static final intAccepted by the <type> parameter of eglCreateSyncKHR, and returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_TYPE_KHR:static final intAccepted in the <flags> parameter of eglClientWaitSyncKHR:static final intReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_CONDITION_KHR:static final intAccepted by the <attribute> parameter of eglGetSyncAttribKHR:static final intAccepted by the <attribute> parameter of eglGetSyncAttribKHR:static final intReturned by eglClientWaitSyncKHR:static final intReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR: -
Method Summary
Modifier and TypeMethodDescriptionstatic integlClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, int flags, long timeout) Blocks the calling thread until the specified sync object is signaled, or until a specified timeout value expires.static EGLSyncKHReglCreateSyncKHR(EGLDisplay dpy, int type, IntBuffer attrib_list) Creates a fence sync object for the specified EGL display and returns a handle to the new object.static voideglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) Destroys an existing sync object.static integlGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, int attribute) Returns the value of the sync object attribute.
-
Field Details
-
EGL_SYNC_FENCE_KHR
public static final int EGL_SYNC_FENCE_KHRAccepted by the <type> parameter of eglCreateSyncKHR, and returned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_TYPE_KHR:- See Also:
-
EGL_SYNC_TYPE_KHR
public static final int EGL_SYNC_TYPE_KHRAccepted by the <attribute> parameter of eglGetSyncAttribKHR:- See Also:
-
EGL_SYNC_STATUS_KHR
public static final int EGL_SYNC_STATUS_KHRAccepted by the <attribute> parameter of eglGetSyncAttribKHR:- See Also:
-
EGL_SYNC_CONDITION_KHR
public static final int EGL_SYNC_CONDITION_KHRAccepted by the <attribute> parameter of eglGetSyncAttribKHR:- See Also:
-
EGL_SIGNALED_KHR
public static final int EGL_SIGNALED_KHRReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:- See Also:
-
EGL_UNSIGNALED_KHR
public static final int EGL_UNSIGNALED_KHRReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_STATUS_KHR:- See Also:
-
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHRReturned in <value> when eglGetSyncAttribKHR is called with <attribute> EGL_SYNC_CONDITION_KHR:- See Also:
-
EGL_SYNC_FLUSH_COMMANDS_BIT_KHR
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_KHRAccepted in the <flags> parameter of eglClientWaitSyncKHR:- See Also:
-
EGL_FOREVER_KHR
public static final long EGL_FOREVER_KHRAccepted in the <timeout> parameter of eglClientWaitSyncKHR:- See Also:
-
EGL_TIMEOUT_EXPIRED_KHR
public static final int EGL_TIMEOUT_EXPIRED_KHRReturned by eglClientWaitSyncKHR:- See Also:
-
EGL_CONDITION_SATISFIED_KHR
public static final int EGL_CONDITION_SATISFIED_KHRReturned by eglClientWaitSyncKHR:- See Also:
-
EGL_NO_SYNC_KHR
public static final long EGL_NO_SYNC_KHRReturned by eglCreateSyncKHR in the event of an error:- See Also:
-
-
Method Details
-
eglCreateSyncKHR
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- the EGL displaytype- the sync typeattrib_list- an attribute list (may be null)- Returns:
- the created fence sync object
- Throws:
LWJGLException- if an EGL error occurs.
-
eglDestroySyncKHR
Destroys an existing sync object.- Parameters:
sync- the sync object- Throws:
LWJGLException- if an EGL error occurs.
-
eglClientWaitSyncKHR
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- the sync objectflags- the block flagstimeout- the block timeout- Returns:
- the sync object status
- Throws:
LWJGLException- if an EGL error occurs.
-
eglGetSyncAttribKHR
public static int eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, int attribute) throws LWJGLException Returns the value of the sync object attribute.- Parameters:
sync- the sync objectattribute- the attribute to query- Returns:
- the attribute value
- Throws:
LWJGLException- if an EGL error occurs.
-