All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengles.NVCopyBuffer Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengles;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;

/**
 * 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; protected NVCopyBuffer() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glCopyBufferSubDataNV ); } // --- [ glCopyBufferSubDataNV ] --- public static void glCopyBufferSubDataNV(int readTarget, int writeTarget, long readOffset, long writeOffset, long size) { long __functionAddress = GLES.getCapabilities().glCopyBufferSubDataNV; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPPPV(__functionAddress, readTarget, writeTarget, readOffset, writeOffset, size); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy