org.lwjgl.opengles.MESAFramebufferSwapXY 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;
/**
* Native bindings to the MESA_framebuffer_swap_xy extension.
*
* This extension defines a new framebuffer parameter, {@link #GL_FRAMEBUFFER_SWAP_XY_MESA FRAMEBUFFER_SWAP_XY_MESA}, that changes the behavior of the reads and writes to the framebuffer
* attachment points. When {@code GL_FRAMEBUFFER_SWAP_XY_MESA} is {@link GLES20#GL_TRUE TRUE}, render commands and pixel transfer operations access the backing store of each
* attachment point with an xy-swapped coordinate system. This xy-inversion is relative to the coordinate system set when
* {@code GL_FRAMEBUFFER_SWAP_XY_MESA} is {@link GLES20#GL_FALSE FALSE}.
*
* Access through {@link GLES20#glTexSubImage2D TexSubImage2D} and similar calls will notice the effect of the swap when they are not attached to framebuffer objects because
* {@code GL_FRAMEBUFFER_SWAP_XY_MESA} is associated with the framebuffer object and not the attachment points.
*
* The application should notice the display width and height are also swapped when {@code GL_FRAMEBUFFER_SWAP_XY_MESA} is {@code GL_TRUE}.
*
* This extension is mainly for pre-rotation and recommended to use it with {@code MESA_framebuffer_flip_x} and {@code MESA_framebuffer_flip_y} to have
* rotated result.
*
* Requires {@link GLES31 GLES 3.1}.
*/
public final class MESAFramebufferSwapXY {
/** Accepted by the {@code pname} argument of {@link GLES31#glFramebufferParameteri FramebufferParameteri} and {@link GLES31#glGetFramebufferParameteriv GetFramebufferParameteriv}. */
public static final int GL_FRAMEBUFFER_SWAP_XY_MESA = 0x8BBD;
private MESAFramebufferSwapXY() {}
}