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

org.lwjgl.opengl.WGLNVCopyImage Maven / Gradle / Ivy

Go to download

The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.

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.opengl;

import org.lwjgl.system.*;

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

/**
 * Native bindings to the WGL_NV_copy_image extension.
 * 
 * 

This extension enables efficient image data transfer between image objects (i.e. textures and renderbuffers) without the need to bind the objects or * otherwise configure the rendering pipeline. The WGL version allows copying between images in different contexts, even if those contexts are in * different sharelists or even on different physical devices.

*/ public class WGLNVCopyImage { protected WGLNVCopyImage() { throw new UnsupportedOperationException(); } static boolean isAvailable(WGLCapabilities caps) { return checkFunctions( caps.wglCopyImageSubDataNV ); } // --- [ wglCopyImageSubDataNV ] --- /** * Behaves identically to the core function {@link #wglCopyImageSubDataNV CopyImageSubDataNV}, except that the {@code srcRC} and {@code dstRC} parameters specify * the contexts in which to look up the source and destination objects, respectively. A value of zero indicates that the currently bound context should be * used instead. * * @param srcRC the source OpenGL context * @param srcName the source object * @param srcTarget the source object target * @param srcLevel the source level-of-detail number * @param srcX the source texel x coordinate * @param srcY the source texel y coordinate * @param srcZ the source texel z coordinate * @param dstRC the destination OpenGL context * @param dstName the destination object * @param dstTarget the destination object target * @param dstLevel the destination level-of-detail number * @param dstX the destination texel x coordinate * @param dstY the destination texel y coordinate * @param dstZ the destination texel z coordinate * @param width the number of texels to copy in the x-dimension * @param height the number of texels to copy in the y-dimension * @param depth the number of texels to copy in the z-dimension */ @NativeType("BOOL") public static boolean wglCopyImageSubDataNV(@NativeType("HGLRC") long srcRC, @NativeType("GLuint") int srcName, @NativeType("GLenum") int srcTarget, @NativeType("GLint") int srcLevel, @NativeType("GLint") int srcX, @NativeType("GLint") int srcY, @NativeType("GLint") int srcZ, @NativeType("HGLRC") long dstRC, @NativeType("GLuint") int dstName, @NativeType("GLenum") int dstTarget, @NativeType("GLint") int dstLevel, @NativeType("GLint") int dstX, @NativeType("GLint") int dstY, @NativeType("GLint") int dstZ, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth) { long __functionAddress = GL.getCapabilitiesWGL().wglCopyImageSubDataNV; if (CHECKS) { check(__functionAddress); check(srcRC); check(dstRC); } return callPPI(__functionAddress, srcRC, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstRC, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth) != 0; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy