Class MESAFramebufferFlipX


  • public final class MESAFramebufferFlipX
    extends java.lang.Object
    Native bindings to the MESA_framebuffer_flip_x extension.

    This extension defines a new framebuffer parameter, FRAMEBUFFER_FLIP_X_MESA, that changes the behavior of the reads and writes to the framebuffer attachment points. When GL_FRAMEBUFFER_FLIP_X_MESA is 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 GL_FRAMEBUFFER_FLIP_X_MESA is FALSE.

    Access through TexSubImage2D and similar calls will notice the effect of the flip when they are not attached to framebuffer objects because 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 MESA_framebuffer_flip_y and MESA_framebuffer_swap_xy to have rotated result.

    Requires OpenGL 4.3.