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.surfaceless_context

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

Overview (from the spec)
	
	Applications that only want to render to framebuffer objects should
	not need to create a throw-away EGL surface (typically a 1x1
	pbuffer) just to get a current context.  The EGL extension
	KHR_surfaceless_context provides a mechanism for making a context
	current without a surface.  This extensions specifies the behaviour
	of OpenGL ES 1.x and OpenGL ES 2.0 when such a context is made
	current.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/OES/surfaceless_context.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   úb/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES1/OES/surfaceless_context.pyÚglInitSurfacelessContextOES   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES1r   r   Z(OpenGL.raw.GLES1.OES.surfaceless_contextr
   r   r   r   r   r   Ú<module>   s   