org.lwjgl.opengles.MESAFramebufferFlipY Maven / Gradle / Ivy
Show all versions of lwjgl-opengles Show documentation
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Native bindings to the MESA_framebuffer_flip_y extension.
*
* This extension defines a new framebuffer parameter, {@link #GL_FRAMEBUFFER_FLIP_Y_MESA FRAMEBUFFER_FLIP_Y_MESA}, that changes the behavior of the reads and writes to the framebuffer
* attachment points. When {@code GL_FRAMEBUFFER_FLIP_Y_MESA} is {@link GLES20#GL_TRUE TRUE}, render commands and pixel transfer operations access the backing store of each
* attachment point with an y-inverted coordinate system. This y-inversion is relative to the coordinate system set when
* {@code GL_FRAMEBUFFER_FLIP_Y_MESA} is {@link GLES20#GL_FALSE FALSE}.
*
* Access through {@link GLES20#glTexSubImage2D TexSubImage2D} and similar calls will notice the effect of the flip when they are not attached to framebuffer objects because
* {@code GL_FRAMEBUFFER_FLIP_Y_MESA} is associated with the framebuffer object and not the attachment points.
*
* Requires {@link GLES30 GLES 3.0}.
*/
public class MESAFramebufferFlipY {
static { GLES.initialize(); }
/** Accepted by the {@code pname} argument of {@link #glFramebufferParameteriMESA FramebufferParameteriMESA} and {@link #glGetFramebufferParameterivMESA GetFramebufferParameterivMESA}. */
public static final int GL_FRAMEBUFFER_FLIP_Y_MESA = 0x8BBB;
protected MESAFramebufferFlipY() {
throw new UnsupportedOperationException();
}
// --- [ glFramebufferParameteriMESA ] ---
public static native void glFramebufferParameteriMESA(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint") int param);
// --- [ glGetFramebufferParameterivMESA ] ---
public static native void nglGetFramebufferParameterivMESA(int target, int pname, long params);
public static void glGetFramebufferParameterivMESA(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetFramebufferParameterivMESA(target, pname, memAddress(params));
}
/** Array version of: {@link #glGetFramebufferParameterivMESA GetFramebufferParameterivMESA} */
public static void glGetFramebufferParameterivMESA(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) {
long __functionAddress = GLES.getICD().glGetFramebufferParameterivMESA;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(target, pname, params, __functionAddress);
}
}