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 org.lwjgl.opengl Show documentation
Show all versions of org.lwjgl.opengl Show documentation
LWJGL OSGi bundle (OpenGL bindings)
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
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(long display, long readCtx, long writeCtx, int readTarget, int writeTarget, long readOffset, long writeOffset, 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(long display, long readCtx, long writeCtx, int readBuffer, int writeBuffer, long readOffset, long writeOffset, 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);
}
}