Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EGLNVSync

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

EGL_NV_sync wrapper class.

Field Summary

Modifier and TypeField and Description
public static final int
EGL_ALREADY_SIGNALED_NV

Returned by eglClientWaitSyncNV:

public static final int
EGL_CONDITION_SATISFIED_NV

Returned by eglClientWaitSyncNV:

public static final long
EGL_FOREVER_NV

Accepted in the <timeout> parameter of eglClientWaitSyncNV:

public static final long
EGL_NO_SYNC_NV

Returned by eglCreateFenceSyncNV in the event of an error:

public static final int
EGL_SIGNALED_NV

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:

public static final int
EGL_SYNC_CONDITION_NV

Accepted in the <attribute> parameter of eglGetSyncAttribNV:

public static final int
EGL_SYNC_FENCE_NV

Returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_TYPE_NV:

public static final int
EGL_SYNC_FLUSH_COMMANDS_BIT_NV

Accepted in the <flags> parameter of eglClientWaitSyncNV:

public static final int
EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV

Accepted in the <condition> parameter of eglCreateFenceSyncNV, and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_CONDITION_NV:

public static final int
EGL_SYNC_STATUS_NV

Accepted as an attribute name in the <attrib_list> parameter of eglCreateFenceSyncNV, and by the <attribute> parameter of eglGetSyncAttribNV:

public static final int
EGL_SYNC_TYPE_NV

Accepted in the <attribute> parameter of eglGetSyncAttribNV:

public static final int
EGL_TIMEOUT_EXPIRED_NV

Returned by eglClientWaitSyncNV:

public static final int
EGL_UNSIGNALED_NV

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:

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the sync object status
eglClientWaitSyncNV
(EGLSyncNV
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 EGLSyncNV

Returns:

the created fence sync object
eglCreateFenceSyncNV
(EGLDisplay
the EGL display
dpy
,
int
the sync condition
condition
,
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
eglDestroySyncNV(EGLSyncNV
the sync object
sync
)

Destroys an existing sync object.

public static void
eglFenceNV(EGLSyncNV
the sync object
sync
)

Inserts a fence command into the command stream of the bound API's current context and associates it with sync object.

public static int

Returns:

the attribute value
eglGetSyncAttribNV
(EGLSyncNV
the sync object
sync
,
int
the attribute to query
attribute
)

Returns the value of the sync object attribute.

public static void
eglSignalSyncNV(EGLSyncNV
the sync object
sync
,
int
the mode
mode
)

Signals or unsignals the sync object by changing its status to the specified mode.

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

private static native long
neglCreateFenceSyncNV(long dpy_ptr, int condition, long attrib_list)

private static native boolean
neglDestroySyncNV(long sync_ptr)

private static native boolean
neglFenceNV(long sync_ptr)

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

private static native boolean
neglSignalSyncNV(long sync_ptr, int mode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_ALREADY_SIGNALED_NVback to summary
public static final int EGL_ALREADY_SIGNALED_NV

Returned by eglClientWaitSyncNV:

EGL_CONDITION_SATISFIED_NVback to summary
public static final int EGL_CONDITION_SATISFIED_NV

Returned by eglClientWaitSyncNV:

EGL_FOREVER_NVback to summary
public static final long EGL_FOREVER_NV

Accepted in the <timeout> parameter of eglClientWaitSyncNV:

EGL_NO_SYNC_NVback to summary
public static final long EGL_NO_SYNC_NV

Returned by eglCreateFenceSyncNV in the event of an error:

EGL_SIGNALED_NVback to summary
public static final int EGL_SIGNALED_NV

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:

EGL_SYNC_CONDITION_NVback to summary
public static final int EGL_SYNC_CONDITION_NV

Accepted in the <attribute> parameter of eglGetSyncAttribNV:

EGL_SYNC_FENCE_NVback to summary
public static final int EGL_SYNC_FENCE_NV

Returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_TYPE_NV:

EGL_SYNC_FLUSH_COMMANDS_BIT_NVback to summary
public static final int EGL_SYNC_FLUSH_COMMANDS_BIT_NV

Accepted in the <flags> parameter of eglClientWaitSyncNV:

EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NVback to summary
public static final int EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV

Accepted in the <condition> parameter of eglCreateFenceSyncNV, and returned in <value> when eglGetSyncAttribNV is called with <attribute> EGL_SYNC_CONDITION_NV:

EGL_SYNC_STATUS_NVback to summary
public static final int EGL_SYNC_STATUS_NV

Accepted as an attribute name in the <attrib_list> parameter of eglCreateFenceSyncNV, and by the <attribute> parameter of eglGetSyncAttribNV:

EGL_SYNC_TYPE_NVback to summary
public static final int EGL_SYNC_TYPE_NV

Accepted in the <attribute> parameter of eglGetSyncAttribNV:

EGL_TIMEOUT_EXPIRED_NVback to summary
public static final int EGL_TIMEOUT_EXPIRED_NV

Returned by eglClientWaitSyncNV:

EGL_UNSIGNALED_NVback to summary
public static final int EGL_UNSIGNALED_NV

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:

Constructor Detail

EGLNVSyncback to summary
private EGLNVSync()

Method Detail

eglClientWaitSyncNVback to summary
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:EGLSyncNV

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.
eglCreateFenceSyncNVback to summary
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:EGLDisplay

the EGL display

condition:int

the sync condition

attrib_list:IntBuffer

an attribute list (may be null)

Returns:EGLSyncNV

the created fence sync object

Exceptions
LWJGLException:
if an EGL error occurs.
eglDestroySyncNVback to summary
public static void eglDestroySyncNV(EGLSyncNV sync) throws LWJGLException

Destroys an existing sync object.

Parameters
sync:EGLSyncNV

the sync object

Exceptions
LWJGLException:
if an EGL error occurs.
eglFenceNVback to summary
public static void eglFenceNV(EGLSyncNV sync) throws LWJGLException

Inserts a fence command into the command stream of the bound API's current context and associates it with sync object.

Parameters
sync:EGLSyncNV

the sync object

Exceptions
LWJGLException:
if an EGL error occurs.
eglGetSyncAttribNVback to summary
public static int eglGetSyncAttribNV(EGLSyncNV sync, int attribute) throws LWJGLException

Returns the value of the sync object attribute.

Parameters
sync:EGLSyncNV

the sync object

attribute:int

the attribute to query

Returns:int

the attribute value

Exceptions
LWJGLException:
if an EGL error occurs.
eglSignalSyncNVback to summary
public static void eglSignalSyncNV(EGLSyncNV sync, int mode) throws LWJGLException

Signals or unsignals the sync object by changing its status to the specified mode.

Parameters
sync:EGLSyncNV

the sync object

mode:int

the mode

Exceptions
LWJGLException:
if an EGL error occurs.
initNativeStubsback to summary
private static native void initNativeStubs()
neglClientWaitSyncNVback to summary
private static native int neglClientWaitSyncNV(long sync_ptr, int flags, long timeout)
neglCreateFenceSyncNVback to summary
private static native long neglCreateFenceSyncNV(long dpy_ptr, int condition, long attrib_list)
neglDestroySyncNVback to summary
private static native boolean neglDestroySyncNV(long sync_ptr)
neglFenceNVback to summary
private static native boolean neglFenceNV(long sync_ptr)
neglGetSyncAttribNVback to summary
private static native boolean neglGetSyncAttribNV(long sync_ptr, int attribute, long value)
neglSignalSyncNVback to summary
private static native boolean neglSignalSyncNV(long sync_ptr, int mode)