
    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\R                  " \5      R                  S	S
5      r\R                  " \5      R                  S	S
5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \5      R                  S	S5      r\R                  " \ 5      R                  S	S5      r \R                  " \!5      R                  S	S5      r!\R                  " \"5      R                  S	S5      r"\R                  " \#5      R                  S	S5      r#\R                  " \$5      R                  S	S5      r$\R                  " \%5      R                  S	S5      r%\R                  " \&5      RO                  SSSS9RO                  SS SSS9RO                  SSSS9RO                  SSSS9r&\R                  " \(5      RO                  SSSS9r(\R                  " \)5      RO                  SSSS9r)\R                  " \*5      RO                  SSSS9r*\R                  " \+5      RO                  SSSS9r+SSK,J-r-J.r.J/r/  SSK0J1r2  SSK3J4r4  \2" \&5      S 5       r&\2" \55      S 5       r5g) a  OpenGL extension ARB.vertex_shader

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

Overview (from the spec)
        
        This extension adds programmable vertex level processing to OpenGL. The
        application can write vertex shaders in a high level language as defined
        in the OpenGL Shading Language specification. The language itself is not
        discussed here. A vertex shader replaces the transformation, texture
        coordinate generation and lighting parts of OpenGL, and it also adds
        texture access at the vertex level. Furthermore, management of vertex
        shader objects and loading generic attributes are discussed. A vertex
        shader object, attached to a program object, can be compiled and linked
        to produce an executable that runs on the vertex processor in OpenGL.
        This extension also defines how such an executable interacts with the
        fixed functionality vertex processing of OpenGL 1.4.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/vertex_shader.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    U/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/vertex_shader.pyglInitVertexShaderARBr      s    !$$o77    v            length)r   T)sizeorPassInnamec                     U 4$ )N )xs    r   <lambda>r   l   s    !r   	maxLength)r   pnameArgr   r   typeparams)r   pointer)bytes_NULL_8_BYTEas_8_bit)lazy)glGetObjectParameterivARBc                    [        [        U[        5      5      n[        [        U[        5      5      nX#:  a  US:  a  US:  a  U " X5      u  pEpg[	        US5      (       a   UR                  5       R                  S5      nON[	        US5      (       a   UR                  5       R                  S5      nO[	        US5      (       a  UR                  nXVU4$ [        SUS-
  4-  5      e)zKRetrieve the name, size and type of the uniform of the index in the programr   tobytes    tostringvaluez"index out of range from zero to %ir   )
intr)   GL_OBJECT_ACTIVE_ATTRIBUTES_ARB)GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARBhasattrr+   rstripr-   r.   
IndexError)baseOperationprogramindex	max_indexr   r   r   r"   s           r   glGetActiveAttribARBr9      s     -g7VWXI!'+TUF UaZFQJ#0#@ d4##<<>((1DT:&&==?))'2DT7##::D4
9Y]<LL
MMr   c                 x    U(       d  [        S5      e[        U5      nUS   [        :w  a	  U[        -   nU " X5      $ )z=Check that name is a string with a null byte at the end of itzNon-null name required)
ValueErrorr'   r&   )r5   r6   r   s      r   glGetAttribLocationARBr=      s=     566D>DBx<l"''r   )6__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   OpenGL.raw.GL.ARB.vertex_shaderr   r   glVertexAttrib1fvARBsetInputArraySizeglVertexAttrib1svARBglVertexAttrib1dvARBglVertexAttrib2fvARBglVertexAttrib2svARBglVertexAttrib2dvARBglVertexAttrib3fvARBglVertexAttrib3svARBglVertexAttrib3dvARBglVertexAttrib4fvARBglVertexAttrib4svARBglVertexAttrib4dvARBglVertexAttrib4ivARBglVertexAttrib4bvARBglVertexAttrib4ubvARBglVertexAttrib4usvARBglVertexAttrib4uivARBglVertexAttrib4NbvARBglVertexAttrib4NsvARBglVertexAttrib4NivARBglVertexAttrib4NubvARBglVertexAttrib4NusvARBglVertexAttrib4NuivARBr9   	setOutputglGetVertexAttribdvARBglGetVertexAttribfvARBglGetVertexAttribivARBglGetVertexAttribPointervARBOpenGL._bytesr%   r&   r'   OpenGL.lazywrapperr(   _lazyOpenGL.GL.ARB.shader_objectsr)   r=   r   r   r   <module>rc      s  . . - &  ) - ;8
 __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  __%9:LL  oo&;<NN  oo&;<NN  oo&;<NN  oo&;<NN  oo&;<NN  oo&;<NN  '=>PP  '=>PP  '=>PP  __%9:DD$ E )
{D  )
d  )
d    '=>HH$ I   '=>HH$ I   '=>HH$ I   %__-IJTT4 U   8 7 , B N N$ ( (r   