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e eˇ d
dˇ ddˇZe eˇ d
dˇZe eˇ ddˇ ddˇZe eˇ d
dˇZe eˇ d
dˇjddd„ dddŤjddddŤZe eˇ d
dˇjde
jdddŤZdS )aa  OpenGL extension ARB.shading_language_include

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

Overview (from the spec)
	
	This extension introduces a #include GLSL directive to allow reusing
	the same shader text in multiple shaders and defines the semantics
	and syntax of the names allowed in #include directives. It also
	defines API mechanisms to define the named string backing a
	#include.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/shading_language_include.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   úd/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/ARB/shading_language_include.pyÚglInitShadingLanguageIncludeARB   s    r   ÚnameÚstringÚlengthÚpathc                 C   s   | fS )Nr   )Úxr   r   r   Ú<lambda>8   ó    r   ZbufSizeT)ÚsizeZpnameArgÚorPassInZ	stringlen)é   )r   r   ÚparamsZpname)Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLr   r   Z*OpenGL.raw.GL.ARB.shading_language_includer
   r   ZglNamedStringARBZsetInputArraySizeZglDeleteNamedStringARBZglCompileShaderIncludeARBZglIsNamedStringARBZglGetNamedStringARBZ	setOutputZglGetNamedStringivARBZ_glget_size_mappingr   r   r   r   Ú<module>   sF   
˙ý
˙
˙ý
˙
˙ýű
˙
ý