org.lwjgl.opengl.GLXNVCopyBuffer 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_NV_copy_buffer extension.
*
* Extends {@link ARBCopyBuffer ARB_copy_buffer} to have GLX bindings.
*/
public class GLXNVCopyBuffer {
protected GLXNVCopyBuffer() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLXCapabilities caps) {
return checkFunctions(
caps.glXCopyBufferSubDataNV, caps.glXNamedCopyBufferSubDataNV
);
}
// --- [ glXCopyBufferSubDataNV ] ---
/** @param display the connection to the X server */
public static void glXCopyBufferSubDataNV(@NativeType("Display *") long display, @NativeType("GLXContext") long readCtx, @NativeType("GLXContext") long writeCtx, @NativeType("GLenum") int readTarget, @NativeType("GLenum") int writeTarget, @NativeType("GLintptr") long readOffset, @NativeType("GLintptr") long writeOffset, @NativeType("GLsizeiptr") long size) {
long __functionAddress = GL.getCapabilitiesGLXClient().glXCopyBufferSubDataNV;
if (CHECKS) {
check(__functionAddress);
check(display);
check(readCtx);
check(writeCtx);
}
callPPPPPPV(__functionAddress, display, readCtx, writeCtx, readTarget, writeTarget, readOffset, writeOffset, size);
}
// --- [ glXNamedCopyBufferSubDataNV ] ---
/** @param display the connection to the X server */
public static void glXNamedCopyBufferSubDataNV(@NativeType("Display *") long display, @NativeType("GLXContext") long readCtx, @NativeType("GLXContext") long writeCtx, @NativeType("GLuint") int readBuffer, @NativeType("GLuint") int writeBuffer, @NativeType("GLintptr") long readOffset, @NativeType("GLintptr") long writeOffset, @NativeType("GLsizeiptr") long size) {
long __functionAddress = GL.getCapabilitiesGLXClient().glXNamedCopyBufferSubDataNV;
if (CHECKS) {
check(__functionAddress);
check(display);
check(readCtx);
check(writeCtx);
}
callPPPPPPV(__functionAddress, display, readCtx, writeCtx, readBuffer, writeBuffer, readOffset, writeOffset, size);
}
}