glLoadMatrix replaces the current matrix with the one whose elements are specified by m. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see glMatrixMode).
The current matrix, M, defines a transformation of coordinates. For instance, assume M refers to the modelview matrix. If ๐ฏ = (๐ฏ[0], ๐ฏ[1], ๐ฏ[2], ๐ฏ[3]) is the set of object coordinates of a vertex, and ๐ฆ points to an array of 16 single- or double-precision floating-point values ๐ฆ = {๐ฆ[0], ๐ฆ[1], ..., ๐ฆ[15]}, then the modelview transformation M(๐ฏ) does the following:
glLoadMatrix
replaces the current matrix with the one whose elements are specified by m. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see glMatrixMode).The current matrix, M, defines a transformation of coordinates. For instance, assume M refers to the modelview matrix. If ๐ฏ = (๐ฏ[0], ๐ฏ[1], ๐ฏ[2], ๐ฏ[3]) is the set of object coordinates of a vertex, and ๐ฆ points to an array of 16 single- or double-precision floating-point values ๐ฆ = {๐ฆ[0], ๐ฆ[1], ..., ๐ฆ[15]}, then the modelview transformation M(๐ฏ) does the following:
ใ คใ คใ คใ คโ๐ฆ[0]ใ ค๐ฆ[4]ใ ค๐ฆ[8] ใ ค๐ฆ[12]โใ คใ คใ คโ๐ฏ[0]โ
ใ คใ คใ คใ คโ๐ฆ[1]ใ ค๐ฆ[5]ใ ค๐ฆ[9] ใ ค๐ฆ[13]โใ คใ คใ คโ๐ฏ[1]โ
M(๐ฏ) =ใ คโ๐ฆ[2]ใ ค๐ฆ[6]ใ ค๐ฆ[10]ใ ค๐ฆ[14]โใ คร ใ คโ๐ฏ[2]โ
ใ คใ คใ คใ คโ๐ฆ[3]ใ ค๐ฆ[7]ใ ค๐ฆ[11]ใ ค๐ฆ[15]โ ใ คใ คใ คโ๐ฏ[3]โ
Projection and texture transformations are similarly defined.