glScale(3) glScale(3)

## NAME

glScaled,glScalef- multiply the current matrix by a general scaling matrix

## C SPECIFICATION

voidglScaled( GLdoublex, GLdoubley, GLdoublez) voidglScalef( GLfloatx, GLfloaty, GLfloatz)

## PARAMETERS

x,y,zSpecify scale factors along thex,y, andzaxes, respectively.

## DESCRIPTION

glScaleproduces a nonuniform scaling along thex,y, andzaxes. The three parameters indicate the desired scale factor along each of the three axes. The current matrix (seeglMatrixMode) is multiplied by this scale matrix, and the product replaces the current matrix as ifglScalewere called with the following matrix as its argument: x 0 0 0 0 y 0 0 0 0 z 0 0 0 0 1 If the matrix mode is eitherGL_MODELVIEWorGL_PROJECTION, all objects drawn afterglScaleis called are scaled. UseglPushMatrixandglPopMatrixto save and restore the unscaled coor- dinate system.

## NOTES

If scale factors other than 1 are applied to the modelview matrix and lighting is enabled, lighting often appears wrong. In that case, enable automatic normalization of normals by callingglEnablewith the argumentGL_NORMALIZE.

## ERRORS

GL_INVALID_OPERATIONis generated ifglScaleis executed between the execution ofglBeginand the corresponding execution ofglEnd.

## ASSOCIATED GETS

glGetwith argumentGL_MATRIX_MODEglGetwith argumentGL_COLOR_MATRIXglGetwith argumentGL_MODELVIEW_MATRIXglGetwith argumentGL_PROJECTION_MATRIXglGetwith argumentGL_TEXTURE_MATRIX

## SEE ALSO

glMatrixMode(3),glMultMatrix(3),glPushMatrix(3),glRotate(3),glTranslate(3)glScale(3)

Mac OS X 10.6 - Generated Thu Sep 17 20:20:28 CDT 2009