2.0 3.0 > comp > gb.opengl > gl > loadidentity

 文档

`Static Sub LoadIdentity ( )`

Replace the current matrix with the identity matrix.

Description

Gl.LoadIdentity replaces the current matrix with the identity matrix. It is semantically equivalent to calling Gl.LoadMatrix with the identity matrix

$\left(\begin{array}{cccc}1& 0& 0& 0\\ 0& 1& 0& 0\\ 0& 0& 1& 0\\ 0& 0& 0& 1\end{array}\right)$

but in some cases it is more efficient.

Errors

Gl.INVALID_OPERATION is generated if Gl.LoadIdentity is executed between the execution of Gl.Begin and the corresponding execution of Gl.End.

Associated Gets

Gl.Get with argument Gl.MATRIX_MODE

Gl.Get with argument Gl.COLOR_MATRIX

Gl.Get with argument Gl.MODELVIEW_MATRIX

Gl.Get with argument Gl.PROJECTION_MATRIX

Gl.Get with argument Gl.TEXTURE_MATRIX