void glTranslated(GLdouble x,
GLdouble y,
GLdouble z)
void glTranslatef(GLfloat x,
GLfloat y,
GLfloat z)

The current matrix (see glMatrixMode) is multiplied by this translation matrix, with the product replacing the current matrix. That is, if M is the current matrix and T is the translation matrix, then M is replaced with M * T.
If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glTranslate is called are translated. Use glPushMatrix and glPopMatrix to save and restore the untranslated coordinate system.
back to the OpenGL index page
© 1995 Uwe Behrens. All rights reserved.