org.lwjgl.opengles.NVCopyBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengles Show documentation
Show all versions of lwjgl-opengles Show documentation
A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the NV_copy_buffer extension.
*
* This extension provides a mechanism to do an accelerated copy from one buffer object to another. This may be useful to load buffer objects in a
* "loading thread" while minimizing cost and synchronization effort in the "rendering thread."
*/
public class NVCopyBuffer {
/**
* Accepted by the target parameters of BindBuffer, BufferData, BufferSubData, MapBufferOES, UnmapBufferOES, GetBufferPointervOES, GetBufferParameteriv and
* CopyBufferSubDataNV.
*/
public static final int
GL_COPY_READ_BUFFER_NV = 0x8F36,
GL_COPY_WRITE_BUFFER_NV = 0x8F37;
static { GLES.initialize(); }
protected NVCopyBuffer() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glCopyBufferSubDataNV
);
}
// --- [ glCopyBufferSubDataNV ] ---
public static native void glCopyBufferSubDataNV(@NativeType("GLenum") int readTarget, @NativeType("GLenum") int writeTarget, @NativeType("GLintptr") long readOffset, @NativeType("GLintptr") long writeOffset, @NativeType("GLsizeiptr") long size);
}