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 )
a7  OpenGL extension EXT.texture_format_BGRA8888

This module customises the behaviour of the 
OpenGL.raw.GLES2.EXT.texture_format_BGRA8888 to provide a more 
Python-friendly API

Overview (from the spec)
	
	 This extension provides an additional format and type combination
	 for use when specifying texture data.  The current allowed combinations
	 are:
	
	 Internal Format     External Format Type                    Bytes per Pixel
	 ---------------     --------------- ----                    ---------------
	 RGBA                RGBA            UNSIGNED_BYTE           4
	 RGB                 RGB             UNSIGNED_BYTE           3
	 RGBA                RGBA            UNSIGNED_SHORT_4_4_4_4  2
	 RGBA                RGBA            UNSIGNED_SHORT_5_5_5_1  2
	 RGB                 RGB             UNSIGNED_SHORT_5_6_5    2
	 LUMINANCE_ALPHA     LUMINANCE_ALPHA UNSIGNED_BYTE           2
	 LUMINANCE           LUMINANCE       UNSIGNED_BYTE           1
	 ALPHA               ALPHA           UNSIGNED_BYTE           1
	
	
	This table is extended to include format BGRA_EXT and type UNSIGNED_BYTE:
	
	 Internal Format     External Format Type                    Bytes per Pixel
	 ---------------     --------------- ----                    ---------------
	 BGRA_EXT            BGRA_EXT        UNSIGNED_BYTE           4
	 BGRA8_EXT           BGRA_EXT        UNSIGNED_BYTE           4
	 RGBA                RGBA            UNSIGNED_BYTE           4
	 RGB                 RGB             UNSIGNED_BYTE           3
	 RGBA                RGBA            UNSIGNED_SHORT_4_4_4_4  2
	 RGBA                RGBA            UNSIGNED_SHORT_5_5_5_1  2
	 RGB                 RGB             UNSIGNED_SHORT_5_6_5    2
	 LUMINANCE_ALPHA     LUMINANCE_ALPHA UNSIGNED_BYTE           2
	 LUMINANCE           LUMINANCE       UNSIGNED_BYTE           1
	 ALPHA               ALPHA           UNSIGNED_BYTE           1
	
	 This format is renderable in versions of OpenGL ES from 2.0 onwards.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/texture_format_BGRA8888.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   úf/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/EXT/texture_format_BGRA8888.pyÚglInitTextureFormatBgra8888EXT4   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   Z,OpenGL.raw.GLES2.EXT.texture_format_BGRA8888r
   r   r   r   r   r   Ú<module>   s   ,