ó
    š3jè	  ã                   ól  • 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\R                  " \5      R                  S
S5      R                  SS5      r\R                  " \5      R                  S
S5      R                  SS5      rg)aR  OpenGL extension APPLE.element_array

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

Overview (from the spec)
        
        This extension provides facilities to improve DrawElements style vertex
        indices submission performance by allowing index arrays.  Using this
        extension these arrays can be contained inside a vertex array range and
        thus pulled directly by the graphics processor, avoiding the CPU overhead
        of touching the index data.
        
        This extension is most useful when used in conjunction with the
        APPLE_vertex_array_range extension. APPLE_vertex_array_range provides an
        interface for storing vertex array data. In cases where large amounts of
        vertex data are in use, the index data used to construct primitives
        (typically as passed to the GL through DrawElements) can impose a
        significant bandwidth burden. APPLE_element_array allows the application to
        specify independent arrays of elements, which can then be cached using
        APPLE_vertex_array_range.  In effect this creates a more orthogonal
        interface for both vertex indices and data.
        

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/APPLE/element_array.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    ÚW/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/APPLE/element_array.pyÚglInitElementArrayAPPLEr   $   s   € å!Ø×$Ò$¤oÓ7Ð7ó    ÚpointerÚcountÚfirst)Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLr   r	   Ú!OpenGL.raw.GL.APPLE.element_arrayr   r   ÚglElementPointerAPPLEÚsetInputArraySizeÚglMultiDrawElementArrayAPPLEÚ!glMultiDrawRangeElementArrayAPPLE© r   r   Ú<module>r      s°   ðñ÷8 .Ñ -ß &Û ß )Ü /Ý =ò8ð —o’oÐ&;Ó<×NÑNØˆtóÐ ð
 %Ÿ_š_Ð-IÓJ×\Ñ\ØˆTóçÑØˆTóð ð #*§/¢/Ð2SÓ"T×"fÑ"fØˆTó#çÑØˆTóñ "r   