org.lwjgl.opengl.EXTFramebufferBlit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.lwjgl.opengl Show documentation
Show all versions of org.lwjgl.opengl Show documentation
LWJGL OSGi bundle (OpenGL bindings)
/*
* 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.*;
/**
* Native bindings to the EXT_framebuffer_blit extension.
*
* This extension modifies EXT_framebuffer_object 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.
*
* Promoted to core in {@link GL30 OpenGL 3.0}.
*/
public class EXTFramebufferBlit {
/**
* Accepted by the {@code target} parameter of BindFramebufferEXT, CheckFramebufferStatusEXT, FramebufferTexture{1D|2D|3D}EXT, FramebufferRenderbufferEXT,
* and GetFramebufferAttachmentParameterivEXT.
*/
public static final int
GL_READ_FRAMEBUFFER_EXT = 0x8CA8,
GL_DRAW_FRAMEBUFFER_EXT = 0x8CA9;
/** Accepted by the {@code pname} parameters of GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6,
GL_READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA;
static { GL.initialize(); }
protected EXTFramebufferBlit() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glBlitFramebufferEXT
);
}
// --- [ glBlitFramebufferEXT ] ---
public static native void glBlitFramebufferEXT(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter);
}