ó
    š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)
a/  OpenGL extension EXT.window_rectangles

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

Overview (from the spec)
        
        This extension provides additional orthogonally aligned "window
        rectangles" specified in window-space coordinates that restrict
        rasterization of all primitive types (geometry, images, paths)
        and framebuffer clears.
        
        When rendering to the framebuffer of an on-screen window, these
        window rectangles are ignored so these window rectangles apply to
        rendering to non-zero framebuffer objects only.
        
        From zero to an implementation-dependent limit (specified by
        GL_MAX_WINDOW_RECTANGLES_EXT) number of window rectangles can be
        operational at once.  When one or more window rectangles are active,
        rasterized fragments can either survive if the fragment is within
        any of the operational window rectangles (GL_INCLUSIVE_EXT mode) or
        be rejected if the fragment is within any of the operational window
        rectangles (GL_EXCLUSIVE_EXT mode).
        
        These window rectangles operate orthogonally to the existing scissor
        test functionality.
        
        This extension has specification language for both OpenGL and ES so
        EXT_window_rectangles can be implemented and advertised for either
        or both API contexts.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/window_rectangles.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    Ú\/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GLES2/EXT/window_rectangles.pyÚglInitWindowRectanglesEXTr   +   s   € å!Ø×$Ò$¤oÓ7Ð7ó    Úbox)Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLES2r   r	   Ú&OpenGL.raw.GLES2.EXT.window_rectanglesr   r   ÚglWindowRectanglesEXTÚsetInputArraySize© r   r   Ú<module>r      sI   ðñ"÷F .Ñ -ß &Û ß ,Ü 4Ý Bò8ð —o’oÐ&;Ó<×NÑNØ	ˆ4óÑ r   