
    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SS
KJr  \" \5      SS j5       rg)a  OpenGL extension ARB.draw_buffers

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

Overview (from the spec)
        
        This extension extends ARB_fragment_program and ARB_fragment_shader
        to allow multiple output colors, and provides a mechanism for
        directing those outputs to multiple color buffers.
        

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/draw_buffers.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    T/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/draw_buffers.pyglInitDrawBuffersARBr      s    !$$o77    bufs)lazyc                     Uc  UnSn[         R                  R                  U5      nUc  [         R                  R                  U5      nU " X5      $ )zsglDrawBuffersARB( bufs ) -> bufs 

Wrapper will calculate n from dims of bufs if only 
one argument is provided...
N)r   GLenumArrayasArray	arraySize)baseOperationnr   s      r   glDrawBuffersARBr   #   sO     |%%t-Dy(($0!""r   )NN)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   OpenGL.raw.GL.ARB.draw_buffersr   r   r   setInputArraySizeOpenGL.lazywrapperr   _lazy r   r   <module>r$      se     . - &  ) , :8 !12DD
D  -# #r   