Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class EXTX11SyncObject

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

Native bindings to the EXT_x11_sync_object extension.

Synchronization objects added the ability to better coordinate operations between multiple GL command streams. However, it is desirable to have the same level of coordination between GL command streams and external rendering APIs. This extension introduces two new concepts to build upon the synchronization infrastructure provided by ARB_sync:

  1. A means to import an X Synchronization Fence object into the GL and use it as a sync object.
  2. The concept of a reusable sync object.

The latter is necessary because the import operation is expensive and performing it every time a synchronization point was reached would make the synchronization prohibitively slow.

This extension stops short of allowing the GL to change the state of imported/reusable sync objects, but does not add any language that would prohibit such functionality from being added in a subsequent extension.

Requires OpenGL 3.2 or ARB_sync.

Field Summary

Modifier and TypeField and Description
public static final int
GL_SYNC_X11_FENCE_EXT

Accepted by the external_sync_type parameter of ImportSyncEXT.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native long
glImportSyncEXT(int
the external sync object type. Must be:
SYNC_X11_FENCE_EXT
external_sync_type
,
long
the external sync object. Must be the XID of a valid X11 Synchronization Fence object
external_sync
,
int
Must be 0.
flags
)

Creates a GL sync object of the type external_sync_type based on the object referred to by external_sync.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_SYNC_X11_FENCE_EXTback to summary
public static final int GL_SYNC_X11_FENCE_EXT

Accepted by the external_sync_type parameter of ImportSyncEXT.

Constructor Detail

EXTX11SyncObjectback to summary
protected EXTX11SyncObject()

Method Detail

glImportSyncEXTback to summary
public static native long glImportSyncEXT(int external_sync_type, long external_sync, int flags)

Creates a GL sync object of the type external_sync_type based on the object referred to by external_sync.

Parameters
external_sync_type:int

the external sync object type. Must be:

SYNC_X11_FENCE_EXT
external_sync:long

the external sync object. Must be the XID of a valid X11 Synchronization Fence object

flags:int

Must be 0.

Annotations
@NativeType:GLsync