Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class GLXEXTSwapControl

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

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

Modifier and TypeField and Description
public static final int
GLX_MAX_SWAP_INTERVAL_EXT

The current swap interval and implementation-dependent max swap interval for a particular drawable.

public static final int
GLX_SWAP_INTERVAL_EXT

The current swap interval and implementation-dependent max swap interval for a particular drawable.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glXSwapIntervalEXT(long
the connection to the X server
display
,
long
the drawable
drawable
,
int
the swap interval
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).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GLX_MAX_SWAP_INTERVAL_EXTback to summary
public static final int GLX_MAX_SWAP_INTERVAL_EXT

The current swap interval and implementation-dependent max swap interval for a particular drawable.

GLX_SWAP_INTERVAL_EXTback to summary
public static final int GLX_SWAP_INTERVAL_EXT

The current swap interval and implementation-dependent max swap interval for a particular drawable.

Constructor Detail

GLXEXTSwapControlback to summary
protected GLXEXTSwapControl()

Method Detail

glXSwapIntervalEXTback to summary
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:long

the connection to the X server

drawable:long

the drawable

interval:int

the swap interval