ó
    š3j|  ã                   ó¤   • 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g)
aa  OpenGL extension ARB.draw_instanced

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

Overview (from the spec)
        
        A common use case in GL for some applications is to be able to
        draw the same object, or groups of similar objects that share
        vertex data, primitive count and type, multiple times.  This 
        extension provides a means of accelerating such use cases while 
        restricting the number of API calls, and keeping the amount of 
        duplicate data to a minimum.
        
        This extension introduces two draw calls which are conceptually
        equivalent to a series of draw calls.  Each conceptual call in
        this series is considered an "instance" of the actual draw call.
        
        This extension also introduces a read-only built-in variable to
        GLSL which contains the "instance ID."  This variable initially
        contains 0, but increases by one after each conceptual draw call.
        
        By using the instance ID or multiples thereof as an index into
        a uniform array containing transform data, vertex shaders can 
        draw multiple instances of an object with a single draw call.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/draw_instanced.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    ÚV/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/draw_instanced.pyÚglInitDrawInstancedARBr   &   s   € å!Ø×$Ò$¤oÓ7Ð7ó    Úindices)Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLr   r	   Ú OpenGL.raw.GL.ARB.draw_instancedr   r   ÚglDrawElementsInstancedARBÚsetInputArraySize© r   r   Ú<module>r      sH   ðñ÷< .Ñ -ß &Û ß )Ü .Ý <ò8ð #Ÿ?š?Ð+EÓF×XÑXØˆtóÑ r   