org.lwjgl.opengles.NVFramebufferBlit 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 static org.lwjgl.system.Checks.*;
/**
* Native bindings to the NV_framebuffer_blit extension.
*
* This extension modifies OpenGL ES 2.0 by splitting the framebuffer object binding point into separate DRAW and READ bindings. This allows copying
* directly from one framebuffer to another. In addition, a new high performance blit function is added to facilitate these blits and perform some data
* conversion where allowed.
*
* Requires {@link GLES20 GLES 2.0}.
*/
public class NVFramebufferBlit {
/**
* Accepted by the {@code target} parameter of BindFramebuffer, CheckFramebufferStatus, FramebufferTexture2D, FramebufferRenderbuffer, and
* GetFramebufferAttachmentParameteriv.
*/
public static final int
GL_READ_FRAMEBUFFER_NV = 0x8CA8,
GL_DRAW_FRAMEBUFFER_NV = 0x8CA9;
/** Accepted by the {@code pname} parameters of GetIntegerv and GetFloatv. */
public static final int
GL_DRAW_FRAMEBUFFER_BINDING_NV = 0x8CA6,
GL_READ_FRAMEBUFFER_BINDING_NV = 0x8CAA;
static { GLES.initialize(); }
protected NVFramebufferBlit() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glBlitFramebufferNV
);
}
// --- [ glBlitFramebufferNV ] ---
public static native void nglBlitFramebufferNV(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter);
public static void glBlitFramebufferNV(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) {
nglBlitFramebufferNV(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
}
}