Home > comp > gb.opengl > gl > loadidentity 
 en fr de es it nl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Gl.LoadIdentity (gb.opengl)
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

1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1

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

See also

Gl.LoadMatrix, Gl.LoadTransposeMatrix, Gl.MatrixMode, Gl.MultMatrix, Gl.MultTransposeMatrix, Gl.PushMatrix

See original documentation on OpenGL website