a
    i‚jE  ă                   @   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e eˇ d
dˇZe eˇ d
dˇZdS )a  OpenGL extension EXT.subtexture

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

Overview (from the spec)
	
	This extension allows a contiguous portion of an already-existing
	texture image to be redefined, without affecting the remaining portion
	of the image, or any of the other state that describe the texture.  No
	provision is made to query a subregion of a texture.
	
	Semantics for null image pointers are defined for TexImage1D,
	TexImage2D, and TexImage3DEXT.  Null image pointers can be used by
	applications to effectively support texture arrays whose dimensions
	are not a power of 2.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/subtexture.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   úV/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/EXT/subtexture.pyÚglInitSubtextureEXT   s    r   Zpixels)Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLr   r   ZOpenGL.raw.GL.EXT.subtexturer
   r   ZglTexSubImage1DEXTZsetInputArraySizeZglTexSubImage2DEXTr   r   r   r   Ú<module>   s   
˙
˙