2003-2004 Silicon Graphics, Inc.
glQueryMatrix 3G
glQueryMatrix glQueryMatrixxOES return the values of the current matrix

## C Specification

GLbitfield `glQueryMatrixxOES` GLfixed * mantissa GLint * exponent

## Parameters

mantissa

  Returns the mantissa values of the current matrix.

exponent

  Returns the exponents of the current matrix.

## Description

`glQueryMatrixxOES` returns the values of the current matrix. mantissa returns an array of the 16 mantissa values of the current matrix, and exponent returns an array of the corresponding 16 exponent values. The matrix value i is then close to mantissa[i]* 2 exponent[i] .

Use glMatrixMode and glActiveTexture to select the desired matrix to return.

If all entries are valid (not NaN or Inf), `glQueryMatrixxOES` returns the status value 0. Otherwise, for every component i which is not valid, the ith bit is set.

## Notes

`glQueryMatrixxOES` is available only if the `GL_OES_query_matrix` extension is supported by your implementation.

The implementation is not required to keep track of overflows. If overflows are not tracked, the returned status value is always 0.

## Associated Gets

glGetString with argument `GL_EXTENSIONS`

glGet with argument `GL_MATRIX_MODE`

glGet with argument `GL_MODELVIEW_MATRIX`

glGet with argument `GL_PROJECTION_MATRIX`

glGet with argument `GL_TEXTURE_MATRIX`

## See Also

glActiveTexture, glGetString, glMatrixMode

## Copyright

Copyright 2003-2004 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.