1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glLoadIdentity">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glLoadIdentity
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glLoadIdentity
</refname>
17 <refpurpose>replace the current matrix with the identity matrix
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glLoadIdentity
</function></funcdef>
23 <paramdef> <parameter>void
</parameter></paramdef>
27 <refsect1 id=
"description"><title>Description
</title>
29 <function>glLoadIdentity
</function> replaces the current matrix with the identity matrix.
30 It is semantically equivalent to calling
<citerefentry><refentrytitle>glLoadMatrix
</refentrytitle></citerefentry>
31 with the identity matrix
36 <informalequation><mml:math>
37 <!-- eqn: left ( { matrix { lcol { 1 above 0 above 0 above 0 } lcol { 0 above 1 above 0 above 0 } lcol { 0 above 0 above 1 above 0 } lcol { 0 above 0 above 0 above 1 } } } right ):-->
38 <mml:mfenced open=
"(" close=
")">
39 <mml:mfenced open=
"" close=
"">
100 </mml:math></informalequation>
105 but in some cases it is more efficient.
108 <refsect1 id=
"errors"><title>Errors
</title>
110 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glLoadIdentity
</function>
111 is executed between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry>
112 and the corresponding execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
115 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
117 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_MATRIX_MODE
</constant>
120 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_COLOR_MATRIX
</constant>
123 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_MODELVIEW_MATRIX
</constant>
126 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_PROJECTION_MATRIX
</constant>
129 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_TEXTURE_MATRIX
</constant>
132 <refsect1 id=
"seealso"><title>See Also
</title>
134 <citerefentry><refentrytitle>glLoadMatrix
</refentrytitle></citerefentry>,
135 <citerefentry><refentrytitle>glLoadTransposeMatrix
</refentrytitle></citerefentry>,
136 <citerefentry><refentrytitle>glMatrixMode
</refentrytitle></citerefentry>,
137 <citerefentry><refentrytitle>glMultMatrix
</refentrytitle></citerefentry>,
138 <citerefentry><refentrytitle>glMultTransposeMatrix
</refentrytitle></citerefentry>,
139 <citerefentry><refentrytitle>glPushMatrix
</refentrytitle></citerefentry>
142 <refsect1 id=
"Copyright"><title>Copyright
</title>
144 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
145 Silicon Graphics, Inc. This document is licensed under the SGI
146 Free Software B License. For details, see
147 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.