
    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 EXT.draw_buffers

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

Overview (from the spec)
        
        This extension increases the number of available framebuffer object
        color attachment points, extends OpenGL ES 2.0 to allow multiple output
        colors, and provides a mechanism for directing those outputs to
        multiple color buffers.
        
        This extension is similar to the combination of the GL_NV_draw_buffers
        and GL_NV_fbo_color_attachments extensions, but imposes certain
        restrictions informed by the OpenGL ES 3.0 API.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/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    W/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GLES2/EXT/draw_buffers.pyglInitDrawBuffersEXTr      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      $ )znglDrawBuffers( 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   glDrawBuffersr   (   sO     |%%t-Dy(($0!""r   )NN)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLES2r   r	   !OpenGL.raw.GLES2.EXT.draw_buffersr   r   glDrawBuffersEXTsetInputArraySizeOpenGL.lazywrapperr   _lazyr    r   r   <module>r%      sd   ( . - &  , / =8 !12DD
D  -# #r   