a
    i‚jý  ã                   @   sz   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¡ dd¡ZdS )a  OpenGL extension ANGLE.translated_shader_source

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

Overview (from the spec)
	
	WebGL uses the GLSL ES 2.0 spec on all platforms, and translates these
	shaders to the host platform's native language (HLSL, GLSL, and even GLSL
	ES). For debugging purposes, it is useful to be able to examine the shader
	after translation.
	
	This extension addes a new function to query the translated shader source,
	and adds a new enum for GetShaderiv's <pname> parameter to query the
	translated shader source length. 

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ANGLE/translated_shader_source.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   úi/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/ANGLE/translated_shader_source.pyÚ!glInitTranslatedShaderSourceANGLE   s    r   Úlengthé   Úsource)Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   Z/OpenGL.raw.GLES2.ANGLE.translated_shader_sourcer
   r   Z glGetTranslatedShaderSourceANGLEZsetInputArraySizer   r   r   r   Ú<module>   s   
ÿý