GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLTRANSLATE

GLTRANSLATE

Index
 

NAME

glTranslated, glTranslatef - multiply the current matrix by a translation matrix

 

C SPECIFICATION

void f3glTranslatedfP( GLdouble fIxfP,
   GLfloat fIyfP,
   GLfloat fIzfP )

delim $$  

PARAMETERS

f2xfP, f2yfP, f2zfP
Specify the f2xfP, f2yfP, and f2zfP coordinates of a translation vector.
 

DESCRIPTION

%f3glTranslatefP produces a translation by $("x","y","z")$. The current matrix (see %f3glMatrixModefP) is multiplied by this translation matrix, with the product replacing the current matrix, as if %f3glMultMatrixfP were called with the following matrix for its argument:


~ down 20 matrix {
   ccol { 1~~ above 0~~ above 0~~ above 0~~ }
   ccol { 0~~ above 1~~ above 0~~ above 0~~ }
   ccol { 0~~ above 0~~ above 1~~ above 0~~ }
   ccol { "x"~ above "y"~ above "z"~ above 1} } ~~

If the matrix mode is either %f3GL_MODELVIEWfP or %f3GL_PROJECTIONfP, all objects drawn after a call to %f3glTranslatefP are translated. Use %f3glPushMatrixfP and %f3glPopMatrixfP to save and restore the untranslated coordinate system.  

ERRORS

%f3GL_INVALID_OPERATIONfP is generated if %f3glTranslatefP is executed between the execution of %f3glBeginfP and the corresponding execution of %f3glEndfP.  

ASSOCIATED GETS

%f3glGetfP with argument %f3GL_MATRIX_MODEfP
%f3glGetfP with argument %f3GL_COLOR_MATRIXfP
%f3glGetfP with argument %f3GL_MODELVIEW_MATRIXfP
%f3glGetfP with argument %f3GL_PROJECTION_MATRIXfP
%f3glGetfP with argument %f3GL_TEXTURE_MATRIXfP  

SEE ALSO

%f3glMatrixMode(3G)fP, %f3glMultMatrix(3G)fP, %f3glPushMatrix(3G)fP, %f3glRotate(3G)fP, %f3glScale(3G)fP


 

Index

NAME
C SPECIFICATION
PARAMETERS
DESCRIPTION
ERRORS
ASSOCIATED GETS
SEE ALSO