a
    i‚j†  ã                   @   s`   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	„ ZdS )
a˜  OpenGL extension MESA.framebuffer_flip_x

This module customises the behaviour of the 
OpenGL.raw.GL.MESA.framebuffer_flip_x to provide a more 
Python-friendly API

Overview (from the spec)
	
	This extension defines a new framebuffer parameter,
	GL_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 GL_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 GL_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.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/MESA/framebuffer_flip_x.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  C   s   ddl m}  |  t¡S )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ZhasGLExtensionr
   r   © r   ú_/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/MESA/framebuffer_flip_x.pyÚglInitFramebufferFlipXMESA$   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLr   r   Z%OpenGL.raw.GL.MESA.framebuffer_flip_xr
   r   r   r   r   r   Ú<module>   s   