001: /*
002: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
004: *
005: * This program is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU General Public License version
007: * 2 only, as published by the Free Software Foundation.
008: *
009: * This program is distributed in the hope that it will be useful, but
010: * WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012: * General Public License version 2 for more details (a copy is
013: * included at /legal/license.txt).
014: *
015: * You should have received a copy of the GNU General Public License
016: * version 2 along with this work; if not, write to the Free Software
017: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
018: * 02110-1301 USA
019: *
020: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
021: * Clara, CA 95054 or visit www.sun.com if you need additional
022: * information or have any questions.
023: */
024:
025: package javax.microedition.khronos.opengles;
026:
027: /**
028: * The <code>GL10Ext</code> interface contains the Java(TM)
029: * programming language bindings for the
030: * <code>OES_query_matrix</code> extension to OpenGL(R) ES 1.0.
031: *
032: * <p> The documentation in this class is normative with respect to
033: * instance variable names and values, method names and signatures,
034: * and exception behavior. The remaining documentation is placed here
035: * for convenience and does not replace the normative documentation
036: * found in the OpenGL ES 1.0 specification and the OpenGL
037: * specification versions it references.
038: */
039: public interface GL10Ext extends GL {
040:
041: // OES_query_matrix extension (optional profile extension in 1.0,
042: // deprecated in 1.1)
043:
044: // /**
045: // * Flag indicating the presence of the <code>OES_query_matrix</code>
046: // * extension.
047: // */
048: // int GL_OES_query_matrix = 1;
049:
050: /**
051: * (<code>OES_query_matrix</code> extension) Return the values of
052: * the current matrix.
053: *
054: * <p><code>glQueryMatrixxOES</code> returns the values of the
055: * current matrix. <code>mantissa</code> returns the 16 mantissa
056: * values of the current matrix, and <code>exponent</code> returns
057: * the correspnding 16 exponent values. The matrix value <i>i</i>
058: * is then close to <code>mantissa</code>[<i>i</i>] *
059: * 2^<code>exponent</code>[<i>i</i>].
060: *
061: * <p>Use <code>glMatrixMode</code> and
062: * <code>glActiveTexture</code> to select the desired matrix to
063: * return.
064: *
065: * <p>If all are valid (not <code>NaN</code> or <code>Inf</code>),
066: * <code>glQueryMatrixxOES</code> returns the status value
067: * 0. Otherwise, for every component <i>i</i> which is not valid,
068: * the <i>i</i>th bit is set.
069: *
070: * <h4>Notes</h4>
071: *
072: * <p><code>glQueryMatrixxOES</code> is available only if the
073: * <code>GL_OES_query_matrix</code> extension is supported by your
074: * implementation.
075: *
076: * <p>The implementation is not required to keep track of
077: * overflows. If overflows are not tracked, the returned status
078: * value is always 0.
079: *
080: * <h4>Associated Gets</h4>
081: *
082: * <p><code>glGetString</code> with argument
083: * <code>GL_EXTENSIONS</code>.
084: *
085: * @param mantissa Returns the mantissi of the current matrix.
086: * @param exponent Returns the exponents of the current matrix.
087: * @param mantissaOffset the starting offset within the
088: * <code>mantissa</code> array.
089: * @param exponentOffset the starting offset within the
090: * <code>exponent</code> array.
091: *
092: * @return a bitfield indicating which components contain invalid
093: * (<code>NaN</code> or <code>Inf</code>) values.
094: *
095: * @exception UnsupportedOperationException if the underlying
096: * runtime engine does not support the
097: * <code>OES_query_matrix</code> extension.
098: * @exception IllegalArgumentException if <code>mantissa</code> is
099: * <code>null</code>.
100: * @exception IllegalArgumentException if <code>exponent</code> is
101: * <code>null</code>.
102: * @exception IllegalArgumentException if <code>mantissaOffset</code>
103: * is less than 0.
104: * @exception IllegalArgumentException if <code>exponentOffset</code>
105: * is less than 0.
106: * @exception IllegalArgumentException if <code>mantissa.length -
107: * mantissaOffset</code> is less than 16.
108: * @exception IllegalArgumentException if <code>exponent.length -
109: * exponentOffset</code> is less than 16.
110: */
111: int glQueryMatrixxOES(int[] mantissa, int mantissaOffset,
112: int[] exponent, int exponentOffset);
113:
114: }
|