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ˇZe eˇ d
dˇZe eˇ ddˇZe eˇ ddˇZdS )a‹  OpenGL extension EXT.occlusion_query_boolean

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

Overview (from the spec)
	
	This extension defines a mechanism whereby an application can
	query whether any pixels (or, more precisely, samples) are drawn
	by a primitive or group of primitives.
	
	The primary purpose of such a query (hereafter referred to as an
	"occlusion query") is to determine the visibility of an object.
	Typically, the application will render the major occluders in the
	scene, then perform an occlusion query for each detail object in
	the scene. On subsequent frames, the previous results of the
	occlusion queries can be used to decide whether to draw an object
	or not.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/occlusion_query_boolean.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   úf/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/EXT/occlusion_query_boolean.pyÚglInitOcclusionQueryBooleanEXT   s    r   ZidsÚparams)Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   Z,OpenGL.raw.GLES2.EXT.occlusion_query_booleanr
   r   ZglGenQueriesEXTZsetInputArraySizeZglDeleteQueriesEXTZglGetQueryivEXTZglGetQueryObjectuivEXTr   r   r   r   Ú<module>   s&   
˙
˙
˙
˙