Click or drag to resize
XDL

XGraphicsglScaled Method (Double, Double, Double)

The glScaled and glScalef functions multiply the current matrix by a general scaling matrix.

Namespace:  Pixoneer.NXDL.NGR
Assembly:  NXDLgr (in NXDLgr.dll) Version: 1.2.817.72
Syntax
C#
public void glScaled(
	double x,
	double y,
	double z
)

Parameters

x
Type: SystemDouble
Scale factors along the x axis.
y
Type: SystemDouble
Scale factors along the y axis.
z
Type: SystemDouble
Scale factors along the z axis.

Return Value

Type: 
This function does not return a value.
Remarks
The glScaled function produces a general scaling along the x, y, and z axes. The three arguments indicate the desired scale factors along each of the three axes. The current matrix (see glMatrixMode) is multiplied by this scale matrix, with the product replacing the current matrix. That is, if M is the current matrix and S is the scale matrix, then M is replaced with M * S. If the matrix mode is either GL_MODELVIEW or GL_PROJECTION, all objects drawn after glScaled is called are scaled. Use glPushMatrix and glPopMatrix to save and restore the unscaled coordinate system. If scale factors other than 1.0 are applied to the model-view matrix and lighting is enabled, automatic normalization of normals should probably also be enabled (glEnable and glDisable with argument GL_NORMALIZE).
See Also