org.lwjgl.opengles.MESAFramebufferFlipX Maven / Gradle / Ivy
Show all versions of org.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;
/**
* Native bindings to the MESA_framebuffer_flip_x extension.
*
* This extension defines a new framebuffer parameter, {@link #GL_FRAMEBUFFER_FLIP_X_MESA FRAMEBUFFER_FLIP_X_MESA}, that changes the behavior of the reads and writes to the framebuffer
* attachment points. When {@code GL_FRAMEBUFFER_FLIP_X_MESA} is {@link GLES20#GL_TRUE TRUE}, render commands and pixel transfer operations access the backing store of each
* attachment point with an x-inverted coordinate system. This x-inversion is relative to the coordinate system set when
* {@code GL_FRAMEBUFFER_FLIP_X_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_X_MESA} is associated with the framebuffer object and not the attachment points.
*
* This extension is mainly for pre-rotation and recommended to use it with {@code MESA_framebuffer_flip_y} and {@code MESA_framebuffer_swap_xy} to have
* rotated result.
*
* Requires {@link GLES31 GLES 3.1}.
*/
public final class MESAFramebufferFlipX {
/** Accepted by the {@code pname} argument of {@link GLES31#glFramebufferParameteri FramebufferParameteri} and {@link GLES31#glGetFramebufferParameteriv GetFramebufferParameteriv}. */
public static final int GL_FRAMEBUFFER_FLIP_X_MESA = 0x8BBC;
private MESAFramebufferFlipX() {}
}