ó
    š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g)	aP  OpenGL extension OES.texture_npot

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

Overview (from the spec)
        
        This extension adds support for the REPEAT and MIRRORED_REPEAT
        texture wrap modes and the minification filters supported for
        non-power of two 2D textures, cubemaps and for 3D textures, if
        the OES_texture_3D extension is supported.
        
        Section 3.8.2 of the OpenGL ES 2.0 specification describes
        rules for sampling from an incomplete texture. There were specific
        rules added for non-power of two textures i.e. if the texture wrap
        mode is not CLAMP_TO_EDGE or minification filter is not NEAREST or
        LINEAR and the texture is a non-power-of-two texture, then sampling
        the texture will return (0, 0, 0, 1).
        
        These rules are no longer applied by an implementation that supports
        this extension.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/OES/texture_npot.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/OES/texture_npot.pyÚglInitTextureNpotOESr   "   s   € å!Ø×$Ò$¤oÓ7Ð7ó    )Ú__doc__r   r   r   r   r   r   ÚctypesÚOpenGL.raw.GLES2r   r	   Ú!OpenGL.raw.GLES2.OES.texture_npotr   r   © r   r   Ú<module>r      s&   ðñ÷4 .Ñ -ß &Û ß ,Ü /Ý =ó8r   