a
    i‚jÊ  ã                   @   s`   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	„ ZdS )
aç  OpenGL extension OES.texture_npot

This module customises the behaviour of the 
OpenGL.raw.GLES1.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                  C   s   ddl m}  |  t¡S )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ZhasGLExtensionr
   r   © r   ú[/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES1/OES/texture_npot.pyÚglInitTextureNpotOES"   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES1r   r   Z!OpenGL.raw.GLES1.OES.texture_npotr
   r   r   r   r   r   Ú<module>   s   