Loadidentity

The LoadIdentity function replaces the current matrix with the identity matrix.

LoadIdentity();

Example:  Actor script for Setup actor (Orthographic Projection)

matrixmode(GL_PROJECTION);

loadidentity();

ortho(-10,10,-10,10,20, -1000);

matrixmode(GL_MODELVIEW);

loadidentity();

Remarks

The LoadIdentity function replaces the current matrix with the identity matrix. It is semantically equivalent to calling LoadMatrix with the identity matrix but in some cases it is more efficient.

See Also

Begin

End

MatrixMode

PopMatrix

PushMatrix