a
    ij                     @   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jd
dd dddZdS )az  OpenGL extension ARB.internalformat_query

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

Overview (from the spec)
	
	OpenGL 4.1 has a number of queries to indicate the maximum number of
	samples available for different formats. These give a coarse-grained
	query mechanism e.g. an implementation can expose different sample
	counts for integer and floating-point formats, but not for different
	floating-point formats. There is also no convenient way for the user
	to determine the granularity of sample counts available, only the
	maximum.
	
	This extension adds a query mechanism that allows the user to
	determine which sample counts are available for a specific internal
	format.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/internalformat_query.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   `/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/ARB/internalformat_query.pyglInitInternalformatQueryARB   s    r   paramsc                 C   s   | fS )Nr   )xr   r   r   <lambda>%       r   countT)sizeZpnameArgZorPassIn)__doc__r   r   r   r   r   r   ctypesZOpenGL.raw.GLr   r   Z&OpenGL.raw.GL.ARB.internalformat_queryr
   r   ZglGetInternalformativZ	setOutputr   r   r   r   <module>   s   
