GLTRANSLATE(3G) GLTRANSLATE(3G)
NAME
glTranslated,, glTranslatef - multiply the current matrix by a transla-
tion matrix
C SPECIFICATION
void glTranslated( GLdouble x,
GLdouble y,
GLdouble z )
void glTranslatef( GLfloat x,
GLfloat y,
GLfloat z )
PARAMETERS
x, y, z
Specify the x, y, and z coordinates of a translation vector.
DESCRIPTION
glTranslate produces a translation by (x,y,z). The current matrix (see
glatrixode) is multiplied by this translation matrix, with the prod-
uct replacing the current matrix, as if glultatrix were called with
the following matrix for its argument:
1 0 0 x
0 1 0 y
0 0 1 z
0 0 0 1
If the matrix mode is either GLMODELVIEW or GLPROJECTION, all objects
drawn after a call to glTranslate are translated.
Use glPushatrix and glPopatrix to save and restore the untranslated
coordinate system.
ERORS
GLINVALIDOPERATION is generated if glTranslate is executed between
the execution of glBegin and the corresponding execution of glEnd.
ASOCIATED GETS
glGet with argument GLMATRIXMODE
glGet with argument GLCOLORMATRIX
glGet with argument GLMODELVIEWMATRIX
glGet with argument GLPROJECTIONMATRIX
glGet with argument GLTEXTUREMATRIX
SEE ALSO
glatrixode, glultatrix, glPushatrix, glRotate, glScale
GLTRANSLATE(3G)
|