1GLSCALE(3G) GLSCALE(3G)
2
3
4
6 glScaled, glScalef - multiply the current matrix by a general scaling
7 matrix
8
9
11 void glScaled( GLdouble x,
12 GLdouble y,
13 GLdouble z )
14 void glScalef( GLfloat x,
15 GLfloat y,
16 GLfloat z )
17
18
20 x, y, z
21 Specify scale factors along the x, y, and z axes, respectively.
22
24 glScale produces a nonuniform scaling along the x, y, and z axes. The
25 three parameters indicate the desired scale factor along each of the
26 three axes.
27
28 The current matrix (see glMatrixMode) is multiplied by this scale
29 matrix, and the product replaces the current matrix as if glScale were
30 called with the following matrix as its argument:
31
32
33 x 0 0 0
34 ⎛⎝0 y 0 0⎞⎠
35 0 0 z 0
36 0 0 0 1
37 If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects
38 drawn after glScale is called are scaled.
39
40 Use glPushMatrix and glPopMatrix to save and restore the unscaled coor‐
41 dinate system.
42
44 If scale factors other than 1 are applied to the modelview matrix and
45 lighting is enabled, lighting often appears wrong. In that case,
46 enable automatic normalization of normals by calling glEnable with the
47 argument GL_NORMALIZE.
48
50 GL_INVALID_OPERATION is generated if glScale is executed between the
51 execution of glBegin and the corresponding execution of glEnd.
52
54 glGet with argument GL_MATRIX_MODE
55 glGet with argument GL_COLOR_MATRIX
56 glGet with argument GL_MODELVIEW_MATRIX
57 glGet with argument GL_PROJECTION_MATRIX
58 glGet with argument GL_TEXTURE_MATRIX
59
61 glMatrixMode(3G), glMultMatrix(3G), glPushMatrix(3G), glRotate(3G),
62 glTranslate(3G)
63
64
65
66 GLSCALE(3G)