
    3j                     p   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\R                  " \5      R                  S	S5      R                  S
S5      r\R                  " \5      R#                  SSSS9R#                  SSSS9rSSKJr  SSKJr  \R,                  " \5      SS j5       rg)a  OpenGL extension ARB.ES2_compatibility

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

Overview (from the spec)
        
        This extension adds support for features of OpenGL ES 2.0 that are
        missing from OpenGL 3.x. Enabling these features will ease the process
        of porting applications from OpenGL ES 2.0 to OpenGL.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/ES2_compatibility.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    Y/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/ES2_compatibility.pyglInitEs2CompatibilityARBr      s    !$$o77    binaryshaders	precision)   T)sizeorPassInrange   )lazywrapper)
GLintArrayc                 ~    Uc  [         R                  " S5      nUc  [         R                  " S5      nU " XX45        X44$ )zGProvides range and precision if not provided, returns (range,precision)r   )r   zeros)baseOperation
shadertypeprecisiontyper   r   s        r   glGetShaderPrecisionFormatr#   +   sB     }  $'$$T*	:e@r   )NN)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   #OpenGL.raw.GL.ARB.ES2_compatibilityr   r   glShaderBinarysetInputArraySizer#   	setOutputr   _lazywrapperOpenGL.arraysr   lazy r   r   <module>r/      s    . - &  ) 1 ?8 ~.@@dt 
 #??+EFPPT4 Q )t    / $.0 1r   