1GLTRANSLATE(3G)                                                GLTRANSLATE(3G)
2
3
4

NAME

6       glTranslated,  glTranslatef - multiply the current matrix by a transla‐
7       tion matrix
8
9

C SPECIFICATION

11       void glTranslated( GLdouble x,
12                          GLdouble y,
13                          GLdouble z )
14       void glTranslatef( GLfloat x,
15                          GLfloat y,
16                          GLfloat z )
17
18

PARAMETERS

20       x, y, z
21              Specify the x, y, and z coordinates of a translation vector.
22

DESCRIPTION

24       glTranslate produces a translation by (x,y,z).  The current matrix (see
25       glMatrixMode) is multiplied by this translation matrix, with the  prod‐
26       uct  replacing  the current matrix, as if glMultMatrix were called with
27       the following matrix for its argument:
28
29                                       1 0 0 x
30                                      ⎛⎝0 1 0 y⎞⎠
31                                       0 0 1 z
32                                       0 0 0 1
33If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects  drawn
34after a call to glTranslate are translated.
35
36Use  glPushMatrix and glPopMatrix to save and restore the untranslated coordi‐
37nate system.
38

ERRORS

40       GL_INVALID_OPERATION is generated if glTranslate  is  executed  between
41       the execution of glBegin and the corresponding execution of glEnd.
42

ASSOCIATED GETS

44       glGet with argument GL_MATRIX_MODE
45       glGet with argument GL_COLOR_MATRIX
46       glGet with argument GL_MODELVIEW_MATRIX
47       glGet with argument GL_PROJECTION_MATRIX
48       glGet with argument GL_TEXTURE_MATRIX
49

SEE ALSO

51       glMatrixMode(3G),   glMultMatrix(3G),  glPushMatrix(3G),  glRotate(3G),
52       glScale(3G)
53
54
55
56                                                               GLTRANSLATE(3G)
Impressum