org.lwjgl.opengl.GLXSGIXSwapGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengl Show documentation
Show all versions of lwjgl-opengl Show documentation
The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
/**
* Native bindings to the GLX_SGIX_swap_group extension.
*
* This extension provides the capability to synchronize the buffer swaps of a group of GLX drawables. A swap group is created, and drawables are added as
* members to the swap group. Buffer swaps to members of the swap group will then take place concurrently.
*
* This extension extends the set of conditions that must be met before a buffer swap can take place.
*/
public class GLXSGIXSwapGroup {
protected GLXSGIXSwapGroup() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLXCapabilities caps) {
return checkFunctions(
caps.glXJoinSwapGroupSGIX
);
}
// --- [ glXJoinSwapGroupSGIX ] ---
/**
* Adds {@code drawable} to the swap group containing {@code member} as a member. If {@code drawable} is already a member of a different group, it is
* implicitly removed from that group first. If {@code member} is {@code None}, {@code drawable} is removed from the swap group that it belongs to, if
* any.
*
* @param display the connection to the X server
* @param drawable the GLXDrawable to add to the swap group
* @param member a member of the swap group or {@code None}
*/
public static void glXJoinSwapGroupSGIX(@NativeType("Display *") long display, @NativeType("GLXDrawable") long drawable, @NativeType("GLXDrawable") long member) {
long __functionAddress = GL.getCapabilitiesGLXClient().glXJoinSwapGroupSGIX;
if (CHECKS) {
check(__functionAddress);
check(display);
check(drawable);
}
callPPPV(display, drawable, member, __functionAddress);
}
}