Name
gl.LoadMatrix -- replace the current matrix with the specified matrix
Synopsis
gl.LoadMatrix(mArray)
Function
gl.LoadMatrix() replaces the current matrix with the one whose elements are specified in mArray. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (See gl.MatrixMode for details.). mArray must store its values in column-major order.

Please consult an OpenGL reference manual for more information.

Inputs
mArray
specifies an array containing 16 consecutive values, which are used as the elements of a 4*4 column-major matrix
Errors
#GL_INVALID_OPERATION is generated if gl.LoadMatrix() 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_MODELVIEW_MATRIX

gl.Get() with argument #GL_PROJECTION_MATRIX

gl.Get() with argument #GL_TEXTURE_MATRIX


Show TOC