Class GLXEXTSwapControl



  • public class GLXEXTSwapControl
    extends java.lang.Object
    Native bindings to the GLX_EXT_swap_control extension.

    This extension allows an application to specify a minimum periodicity of color buffer swaps, measured in video frame periods, for a particular drawable. It also allows an application to query the swap interval and the implementation-dependent maximum swap interval of a drawable.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void glXSwapIntervalEXT(long display, long drawable, int interval)
      Specifies the minimum number of video frame periods per buffer swap for a particular GLX drawable (e.g.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • glXSwapIntervalEXT

        public static void glXSwapIntervalEXT(long display,
                                              long drawable,
                                              int interval)
        Specifies the minimum number of video frame periods per buffer swap for a particular GLX drawable (e.g. a value of two means that the color buffers will be swapped at most every other video frame). The interval takes effect when SwapBuffers is first called on the drawable subsequent to the glXSwapIntervalEXT call.
        Parameters:
        display - the connection to the X server
        drawable - the drawable
        interval - the swap interval