Package org.lwjgl.opengl
Class GLXSGIVideoSync
- java.lang.Object
-
- org.lwjgl.opengl.GLXSGIVideoSync
-
public class GLXSGIVideoSync extends java.lang.Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static int
glXGetVideoSyncSGI(int[] count)
Array version of:GetVideoSyncSGI
static int
glXGetVideoSyncSGI(java.nio.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, java.nio.IntBuffer count)
Puts the calling process to sleep until
-
-
-
Method Detail
-
glXGetVideoSyncSGI
public static int glXGetVideoSyncSGI(java.nio.IntBuffer count)
Returns the value of the video sync counter incount
. Zero is returned if the call is successful.- Parameters:
count
- the video sync counter value
-
glXWaitVideoSyncSGI
public static int glXWaitVideoSyncSGI(int divisor, int remainder, java.nio.IntBuffer count)
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
-
-