
    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5      rg)a  OpenGL extension EXT.multiview_draw_buffers

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

Overview (from the spec)
        
        This extension allows selecting among draw buffers as the
        rendering target. This may be among multiple primary buffers
        pertaining to platform-specific stereoscopic or multiview displays
        or among offscreen framebuffer object color attachments.
        
        To remove any artificial limitations imposed on the number of
        possible buffers, draw buffers are identified not as individual
        enums, but as pairs of values consisting of an enum representing
        buffer locations such as COLOR_ATTACHMENT_EXT or MULTIVIEW_EXT,
        and an integer representing an identifying index of buffers of this
        location. These (location, index) pairs are used to specify draw
        buffer targets using a new DrawBuffersIndexedEXT call.
        
        Rendering to buffers of location MULTIVIEW_EXT associated with the
        context allows rendering to multiview buffers created by EGL using
        EGL_EXT_multiview_window for stereoscopic displays.
        
        Rendering to COLOR_ATTACHMENT_EXT buffers allows implementations to
        increase the number of potential color attachments indefinitely to
        renderbuffers and textures.
        
        This extension allows the traditional quad buffer stereoscopic
        rendering method that has proven effective by indicating a left or
        right draw buffer and rendering to each accordingly, but is also
        dynamic enough to handle an arbitrary number of color buffer targets
        all using the same shader. This grants the user maximum flexibility
        as well as a familiar interface.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/multiview_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    a/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GLES2/EXT/multiview_draw_buffers.pyglInitMultiviewDrawBuffersEXTr   /   s    !$$o77    indiceslocation)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLES2r   r	   +OpenGL.raw.GLES2.EXT.multiview_draw_buffersr   r   glDrawBuffersIndexedEXTsetInputArraySize r   r   <module>r      s[   &N . - &  , 9 G8  (?@RRt r   