C3DObject::Scale

Top  Previous  Next

Syntax:

 

Scale(float  x, float  y, float  z)

 

Purpose:

Scales an object.

 

Parameters:

x - The new x scaling.

y - The new y scaling.

z - The new z scaling.

 

Returned value(s):

None.

 

Application:

'make our mesh twice the size
mesh.Scale(2.0, 2.0, 2.0)

 

Class Hierarchy

C3DObject

 

Additional Info:

Scaling an object is done by the rendering engine.  The original vertices of the mesh remain unchanged.