1GLLOADMATRIX(3G)                                              GLLOADMATRIX(3G)
2
3
4

NAME

6       glLoadMatrixd,  glLoadMatrixf  -  replace  the  current matrix with the
7       specified matrix
8
9

C SPECIFICATION

11       void glLoadMatrixd( const GLdouble *m )
12       void glLoadMatrixf( const GLfloat *m )
13
14

PARAMETERS

16       m  Specifies a pointer to 16 consecutive values, which are used as  the
17          elements of a 4×4 column-major matrix.
18

DESCRIPTION

20       glLoadMatrix  replaces  the  current matrix with the one whose elements
21       are specified by m.  The current matrix is the projection matrix,  mod‐
22       elview  matrix, or texture matrix, depending on the current matrix mode
23       (see glMatrixMode).
24
25       The current matrix, M, defines a transformation  of  coordinates.   For
26       instance,    assume   M   refers   to   the   modelview   matrix.    If
27       v=(v[0],v[1],v[2],v[3]) is the set of object coordinates of  a  vertex,
28       and  m  points  to an array of 16 single- or double-precision floating-
29       point values m[0],m[1],...,m[15],  then  the  modelview  transformation
30       M(v) does the following:
31
32
33                               m[0] m[4] m[8]  m[12]   v[0]
34                         M(v)=⎛⎝m[1] m[5] m[9]  m[13]⎞⎠×⎛⎝v[1]⎞⎠
35                               m[2] m[6] m[10] m[14]   v[2]
36                               m[3] m[7] m[11] m[15]   v[3]
37
38
39       Where ``×'' denotes matrix multiplication.
40
41       Projection and texture transformations are similarly defined.
42

NOTES

44       While the elements of the matrix may be specified with single or double
45       precision, the GL implementation may store or operate on  these  values
46       in less than single precision.
47

ERRORS

49       GL_INVALID_OPERATION  is  generated if glLoadMatrix is executed between
50       the execution of glBegin and the corresponding execution of glEnd.
51

ASSOCIATED GETS

53       glGet with argument GL_MATRIX_MODE
54       glGet with argument GL_COLOR_MATRIX
55       glGet with argument GL_MODELVIEW_MATRIX
56       glGet with argument GL_PROJECTION_MATRIX
57       glGet with argument GL_TEXTURE_MATRIX
58

SEE ALSO

60       glLoadIdentity(3G),         glMatrixMode(3G),         glMultMatrix(3G),
61       glPushMatrix(3G)
62
63
64
65                                                              GLLOADMATRIX(3G)
Impressum