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jddddZdS )a}  OpenGL extension OES.query_matrix

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

Overview (from the spec)
	
	Many applications may need to query the contents and status of the
	current matrix at least for debugging purposes, especially as the
	implementations are allowed to implement matrix machinery either in
	any (possibly proprietary) floating point format, or in a fixed point
	format that has the range and accuracy of at least 16.16 (signed 16 bit
	integer part, unsigned 16 bit fractional part).
	
	This extension is intended to allow application to query the components
	of the matrix and also their status, regardless whether the internal
	representation is in fixed point or floating point.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/OES/query_matrix.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   X/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GL/OES/query_matrix.pyglInitQueryMatrixOES   s    r   exponent)   T)sizeZorPassInZmantissa)__doc__r   r   r   r   r   r   ctypesZOpenGL.raw.GLr   r   ZOpenGL.raw.GL.OES.query_matrixr
   r   ZglQueryMatrixxOESZ	setOutputr   r   r   r   <module>   s   
