Package org.lwjgl.opengl
Class GLXSGIVideoSync
java.lang.Object
org.lwjgl.opengl.GLXSGIVideoSync
Native bindings to the GLX_SGI_video_sync extension.
This extension provides a means for synchronization with the video frame rate of a monitor.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
glXGetVideoSyncSGI
(int[] count) Array version of:GetVideoSyncSGI
static int
glXGetVideoSyncSGI
(IntBuffer count) Returns the value of the video sync counter incount
.static int
glXWaitVideoSyncSGI
(int divisor, int remainder, int[] count) Array version of:WaitVideoSyncSGI
static int
glXWaitVideoSyncSGI
(int divisor, int remainder, IntBuffer count) Puts the calling process to sleep untilstatic int
nglXGetVideoSyncSGI
(long count) Unsafe version of:GetVideoSyncSGI
static int
nglXWaitVideoSyncSGI
(int divisor, int remainder, long count) Unsafe version of:WaitVideoSyncSGI
-
Method Details
-
nglXGetVideoSyncSGI
public static int nglXGetVideoSyncSGI(long count) Unsafe version of:GetVideoSyncSGI
-
glXGetVideoSyncSGI
Returns the value of the video sync counter incount
. Zero is returned if the call is successful.- Parameters:
count
- the video sync counter value
-
nglXWaitVideoSyncSGI
public static int nglXWaitVideoSyncSGI(int divisor, int remainder, long count) Unsafe version of:WaitVideoSyncSGI
-
glXWaitVideoSyncSGI
Puts the calling process to sleep until(C mod D) = R
where
C
is the video sync counter,D
is specified by thedivisor
parameter ofglXWaitVideoSyncSGI
, andR
is specified by theremainder
parameter ofglXWaitVideoSyncSGI
.glXWaitVideoSyncSGI
returns the current video sync counter value incount
. Zero is returned byglXWaitVideoSyncSGI
if it is successful.- Parameters:
divisor
- the divisor valueremainder
- the remainder valuecount
- the video sync counter value
-
glXGetVideoSyncSGI
public static int glXGetVideoSyncSGI(int[] count) Array version of:GetVideoSyncSGI
-
glXWaitVideoSyncSGI
public static int glXWaitVideoSyncSGI(int divisor, int remainder, int[] count) Array version of:WaitVideoSyncSGI
-