1GLSCALE(3G)                      OpenGL Manual                     GLSCALE(3G)
2
3
4

NAME

6       glScale - multiply the current matrix by a general scaling matrix
7

C SPECIFICATION

9       void glScaled(GLdouble x, GLdouble y, GLdouble z);
10
11       void glScalef(GLfloat x, GLfloat y, GLfloat z);
12

PARAMETERS

14       x, y, z
15           Specify scale factors along the x, y, and z axes, respectively.
16

DESCRIPTION

18       glScale produces a nonuniform scaling along the x, y, and z axes. The
19       three parameters indicate the desired scale factor along each of the
20       three axes.
21
22       The current matrix (see glMatrixMode()) is multiplied by this scale
23       matrix, and the product replaces the current matrix as if
24       glMultMatrix() were called with the following matrix as its argument:
25
26       x 0 0 0 0 y 0 0 0 0 z 0 0 0 0 1
27
28       If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects
29       drawn after glScale is called are scaled.
30
31       Use glPushMatrix() and glPopMatrix() to save and restore the unscaled
32       coordinate system.
33

NOTES

35       If scale factors other than 1 are applied to the modelview matrix and
36       lighting is enabled, lighting often appears wrong. In that case, enable
37       automatic normalization of normals by calling glEnable() with the
38       argument GL_NORMALIZE.
39

ERRORS

41       GL_INVALID_OPERATION is generated if glScale is executed between the
42       execution of glBegin() and the corresponding execution of glEnd().
43

ASSOCIATED GETS

45       glGet() with argument GL_MATRIX_MODE
46
47       glGet() with argument GL_COLOR_MATRIX
48
49       glGet() with argument GL_MODELVIEW_MATRIX
50
51       glGet() with argument GL_PROJECTION_MATRIX
52
53       glGet() with argument GL_TEXTURE_MATRIX
54

SEE ALSO

56       glMatrixMode(), glMultMatrix(), glPushMatrix(), glRotate(),
57       glTranslate()
58
60       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
61       under the SGI Free Software B License. For details, see
62       http://oss.sgi.com/projects/FreeB/.
63

AUTHORS

65       opengl.org
66
67
68
69opengl.org                        07/13/2018                       GLSCALE(3G)
Impressum