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

NAME

6       glTranslate - multiply the current matrix by a translation matrix
7

C SPECIFICATION

9       void glTranslated(GLdouble x, GLdouble y, GLdouble z);
10
11       void glTranslatef(GLfloat x, GLfloat y, GLfloat z);
12

PARAMETERS

14       x, y, z
15           Specify the x, y, and z coordinates of a translation vector.
16

DESCRIPTION

18       glTranslate produces a translation by x y z. The current matrix (see
19       glMatrixMode()) is multiplied by this translation matrix, with the
20       product replacing the current matrix, as if glMultMatrix() were called
21       with the following matrix for its argument:
22
23       1 0 0 x 0 1 0 y 0 0 1 z 0 0 0 1
24
25       If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects
26       drawn after a call to glTranslate are translated.
27
28       Use glPushMatrix() and glPopMatrix() to save and restore the
29       untranslated coordinate system.
30

ERRORS

32       GL_INVALID_OPERATION is generated if glTranslate is executed between
33       the execution of glBegin() and the corresponding execution of glEnd().
34

ASSOCIATED GETS

36       glGet() with argument GL_MATRIX_MODE
37
38       glGet() with argument GL_COLOR_MATRIX
39
40       glGet() with argument GL_MODELVIEW_MATRIX
41
42       glGet() with argument GL_PROJECTION_MATRIX
43
44       glGet() with argument GL_TEXTURE_MATRIX
45

SEE ALSO

47       glMatrixMode(), glMultMatrix(), glPushMatrix(), glRotate(), glScale()
48
50       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
51       under the SGI Free Software B License. For details, see
52       http://oss.sgi.com/projects/FreeB/.
53

AUTHORS

55       opengl.org
56
57
58
59opengl.org                        06/10/2014                   GLTRANSLATE(3G)
Impressum