1'''OpenGL extension OES.query_matrix
2
3This module customises the behaviour of the
4OpenGL.raw.GL.OES.query_matrix to provide a more
5Python-friendly API
6
7Overview (from the spec)
8
9	Many applications may need to query the contents and status of the
10	current matrix at least for debugging purposes, especially as the
11	implementations are allowed to implement matrix machinery either in
12	any (possibly proprietary) floating point format, or in a fixed point
13	format that has the range and accuracy of at least 16.16 (signed 16 bit
14	integer part, unsigned 16 bit fractional part).
15
16	This extension is intended to allow application to query the components
17	of the matrix and also their status, regardless whether the internal
18	representation is in fixed point or floating point.
19
20The official definition of this extension is available here:
21http://www.opengl.org/registry/specs/OES/query_matrix.txt
22'''
23from OpenGL import platform, constant, arrays
24from OpenGL import extensions, wrapper
25import ctypes
26from OpenGL.raw.GL import _types, _glgets
27from OpenGL.raw.GL.OES.query_matrix import *
28from OpenGL.raw.GL.OES.query_matrix import _EXTENSION_NAME
29
30def glInitQueryMatrixOES():
31    '''Return boolean indicating whether this extension is available'''
32    from OpenGL import extensions
33    return extensions.hasGLExtension( _EXTENSION_NAME )
34
35glQueryMatrixxOES=wrapper.wrapper(glQueryMatrixxOES).setOutput(
36    'exponent',size=(16,),orPassIn=True
37).setOutput(
38    'mantissa',size=(16,),orPassIn=True
39)
40### END AUTOGENERATED SECTION