org.lwjgl.opengl.GLXNVCopyBuffer Maven / Gradle / Ivy
/*
* 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
* @param readCtx
* @param writeCtx
* @param readTarget
* @param writeTarget
* @param readOffset
* @param writeOffset
* @param size
*/
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
* @param readCtx
* @param writeCtx
* @param readBuffer
* @param writeBuffer
* @param readOffset
* @param writeOffset
* @param size
*/
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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy