Package org.lwjgl.opengles
Class EGLNVSync
java.lang.Object
org.lwjgl.opengles.EGLNVSync
EGL_NV_sync wrapper class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Returned by eglClientWaitSyncNV:static final int
Returned by eglClientWaitSyncNV:static final long
Accepted in the <timeout> parameter of eglClientWaitSyncNV:static final long
Returned by eglCreateFenceSyncNV in the event of an error:static final int
Accepted as an attribute value in the <attrib_list> parameter of eglCreateFenceSyncNV for the EGL_SYNC_STATUS_NV attribute, by the <mode> parameter of eglSignalSyncNV and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_STATUS_NV:static final int
Accepted in the <attribute> parameter of eglGetSyncAttribNV:static final int
Returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_TYPE_NV:static final int
Accepted in the <flags> parameter of eglClientWaitSyncNV:static final int
Accepted in the <condition> parameter of eglCreateFenceSyncNV, and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_CONDITION_NV:static final int
Accepted as an attribute name in the <attrib_list> parameter of eglCreateFenceSyncNV, and by the <attribute> parameter of eglGetSyncAttribNV:static final int
Accepted in the <attribute> parameter of eglGetSyncAttribNV:static final int
Returned by eglClientWaitSyncNV:static final int
Accepted as an attribute value in the <attrib_list> parameter of eglCreateFenceSyncNV for the EGL_SYNC_STATUS_NV attribute, by the <mode> parameter of eglSignalSyncNV and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_STATUS_NV: -
Method Summary
Modifier and TypeMethodDescriptionstatic int
eglClientWaitSyncNV
(EGLSyncNV sync, int flags, long timeout) Blocks the calling thread until the specified sync object is signaled, or until a specified timeout value expires.static EGLSyncNV
eglCreateFenceSyncNV
(EGLDisplay dpy, int condition, IntBuffer attrib_list) Creates a fence sync object for the specified EGL display and returns a handle to the new object.static void
eglDestroySyncNV
(EGLSyncNV sync) Destroys an existing sync object.static void
eglFenceNV
(EGLSyncNV sync) Inserts a fence command into the command stream of the bound API's current context and associates it with sync object.static int
eglGetSyncAttribNV
(EGLSyncNV sync, int attribute) Returns the value of the sync object attribute.static void
eglSignalSyncNV
(EGLSyncNV sync, int mode) Signals or unsignals the sync object by changing its status to the specified mode.
-
Field Details
-
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NVAccepted in the <condition> parameter of eglCreateFenceSyncNV, and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_CONDITION_NV:- See Also:
-
EGL_SYNC_STATUS_NV
public static final int EGL_SYNC_STATUS_NVAccepted as an attribute name in the <attrib_list> parameter of eglCreateFenceSyncNV, and by the <attribute> parameter of eglGetSyncAttribNV:- See Also:
-
EGL_SIGNALED_NV
public static final int EGL_SIGNALED_NVAccepted as an attribute value in the <attrib_list> parameter of eglCreateFenceSyncNV for the EGL_SYNC_STATUS_NV attribute, by the <mode> parameter of eglSignalSyncNV and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_STATUS_NV:- See Also:
-
EGL_UNSIGNALED_NV
public static final int EGL_UNSIGNALED_NVAccepted as an attribute value in the <attrib_list> parameter of eglCreateFenceSyncNV for the EGL_SYNC_STATUS_NV attribute, by the <mode> parameter of eglSignalSyncNV and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_STATUS_NV:- See Also:
-
EGL_SYNC_FLUSH_COMMANDS_BIT_NV
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_NVAccepted in the <flags> parameter of eglClientWaitSyncNV:- See Also:
-
EGL_FOREVER_NV
public static final long EGL_FOREVER_NVAccepted in the <timeout> parameter of eglClientWaitSyncNV:- See Also:
-
EGL_ALREADY_SIGNALED_NV
public static final int EGL_ALREADY_SIGNALED_NVReturned by eglClientWaitSyncNV:- See Also:
-
EGL_TIMEOUT_EXPIRED_NV
public static final int EGL_TIMEOUT_EXPIRED_NVReturned by eglClientWaitSyncNV:- See Also:
-
EGL_CONDITION_SATISFIED_NV
public static final int EGL_CONDITION_SATISFIED_NVReturned by eglClientWaitSyncNV:- See Also:
-
EGL_SYNC_TYPE_NV
public static final int EGL_SYNC_TYPE_NVAccepted in the <attribute> parameter of eglGetSyncAttribNV:- See Also:
-
EGL_SYNC_CONDITION_NV
public static final int EGL_SYNC_CONDITION_NVAccepted in the <attribute> parameter of eglGetSyncAttribNV:- See Also:
-
EGL_SYNC_FENCE_NV
public static final int EGL_SYNC_FENCE_NVReturned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_TYPE_NV:- See Also:
-
EGL_NO_SYNC_NV
public static final long EGL_NO_SYNC_NVReturned by eglCreateFenceSyncNV in the event of an error:- See Also:
-
-
Method Details
-
eglCreateFenceSyncNV
public static EGLSyncNV eglCreateFenceSyncNV(EGLDisplay dpy, int condition, 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 displaycondition
- the sync conditionattrib_list
- an attribute list (may be null)- Returns:
- the created fence sync object
- Throws:
LWJGLException
- if an EGL error occurs.
-
eglDestroySyncNV
Destroys an existing sync object.- Parameters:
sync
- the sync object- Throws:
LWJGLException
- if an EGL error occurs.
-
eglFenceNV
Inserts a fence command into the command stream of the bound API's current context and associates it with sync object.- Parameters:
sync
- the sync object- Throws:
LWJGLException
- if an EGL error occurs.
-
eglClientWaitSyncNV
public static int eglClientWaitSyncNV(EGLSyncNV 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.
-
eglSignalSyncNV
Signals or unsignals the sync object by changing its status to the specified mode.- Parameters:
sync
- the sync objectmode
- the mode- Throws:
LWJGLException
- if an EGL error occurs.
-
eglGetSyncAttribNV
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.
-