Class GLXEXTSwapControl

java.lang.Object
org.lwjgl.opengl.GLXEXTSwapControl

public class GLXEXTSwapControl extends 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.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The current swap interval and implementation-dependent max swap interval for a particular drawable.
    static final int
    The current swap interval and implementation-dependent max swap interval for a particular drawable.
  • Method Summary

    Modifier and Type
    Method
    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
  • Field Details

    • GLX_SWAP_INTERVAL_EXT

      public static final int GLX_SWAP_INTERVAL_EXT
      The current swap interval and implementation-dependent max swap interval for a particular drawable.
      See Also:
    • GLX_MAX_SWAP_INTERVAL_EXT

      public static final int GLX_MAX_SWAP_INTERVAL_EXT
      The current swap interval and implementation-dependent max swap interval for a particular drawable.
      See Also:
  • Method Details

    • 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