ó
    š3jd  ã                   ó`   • S r SSKJrJrJr  SSKJrJr  SSKrSSKJ	r	J
r
  SSK7  SSKJr  S rg)	aÞ  OpenGL extension MESA.pack_invert

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

Overview (from the spec)
        
        This extension adds a new pixel storage parameter to indicate that
        images are to be packed in top-to-bottom order instead of OpenGL's
        conventional bottom-to-top order.  Only pixel packing can be
        inverted (i.e. for glReadPixels, glGetTexImage, glGetConvolutionFilter,
        etc).
        
        Almost all known image file formats store images in top-to-bottom
        order.  As it is, OpenGL reads images from the frame buffer in
        bottom-to-top order.  Thus, images usually have to be inverted before
        writing them to a file with image I/O libraries.  This extension
        allows images to be read such that inverting isn't needed.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/MESA/pack_invert.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  ó:   • SSK Jn   U R                  " [        5      $ )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ÚhasGLExtensionr   r   s    ÚT/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/MESA/pack_invert.pyÚglInitPackInvertMESAr      s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLr   r	   ÚOpenGL.raw.GL.MESA.pack_invertr   r   © r   r   Ú<module>r      s&   ðñ÷. .Ñ -ß &Û ß )Ü ,Ý :ó8r   