Class GLXSGIVideoSync

java.lang.Object
org.lwjgl.opengl.GLXSGIVideoSync

public class GLXSGIVideoSync extends 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 Details

    • nglXGetVideoSyncSGI

      public static int nglXGetVideoSyncSGI(long count)
      Unsafe version of: GetVideoSyncSGI
    • glXGetVideoSyncSGI

      public static int glXGetVideoSyncSGI(IntBuffer count)
      Returns the value of the video sync counter in count. 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

      public static int glXWaitVideoSyncSGI(int divisor, int remainder, IntBuffer count)
      Puts the calling process to sleep until

      (C mod D) = R

      where C is the video sync counter, D is specified by the divisor parameter of glXWaitVideoSyncSGI, and R is specified by the remainder parameter of glXWaitVideoSyncSGI. glXWaitVideoSyncSGI returns the current video sync counter value in count. Zero is returned by glXWaitVideoSyncSGI if it is successful.

      Parameters:
      divisor - the divisor value
      remainder - the remainder value
      count - 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