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

org.lwjgl.opengl.GLXNVCopyImage 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 static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;

/**
 * Native bindings to the GLX_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 GLX version allows copying between images in different contexts, even if those contexts are in different * sharelists or even on different physical devices.

*/ public class GLXNVCopyImage { protected GLXNVCopyImage() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLXCapabilities caps) { return checkFunctions( caps.glXCopyImageSubDataNV ); } // --- [ glXCopyImageSubDataNV ] --- /** * Behaves identically to the core function {@link #glXCopyImageSubDataNV CopyImageSubDataNV}, except that the {@code srcCtx} and {@code dstCtx} parameters specify * the contexts in which to look up the source and destination objects, respectively. A value of {@code NULL} for either context indicates that the value which is * returned by {@link GLX#glXGetCurrentContext GetCurrentContext} should be used instead. Both contexts must share the same address space. * * @param display the connection to the X server * @param srcCtx the source context * @param srcName * @param srcTarget * @param srcLevel * @param srcX * @param srcY * @param srcZ * @param dstCtx the destination context * @param dstName * @param dstTarget * @param dstLevel * @param dstX * @param dstY * @param dstZ * @param width * @param height * @param depth */ public static void glXCopyImageSubDataNV(long display, long srcCtx, int srcName, int srcTarget, int srcLevel, int srcX, int srcY, int srcZ, long dstCtx, int dstName, int dstTarget, int dstLevel, int dstX, int dstY, int dstZ, int width, int height, int depth) { long __functionAddress = GL.getCapabilitiesGLXClient().glXCopyImageSubDataNV; if (CHECKS) { check(__functionAddress); check(display); } callPPPV(__functionAddress, display, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstCtx, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy