7 Creating and Manipulating Scale Transforms

7 Q3ScaleTransform_New

You can use the Q3ScaleTransform_New function to create a new scale transform.

TQ3TransformObject Q3ScaleTransform_New (
const TQ3Vector3D *scale);
scale A vector whose three fields specify the desired scaling along each coordinate axis.

DESCRIPTION


The Q3ScaleTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeScale using the data passed in the scale parameter. The scale transform scales an object by the values in scale->x, scale->y, and scale->z, respectively. The data you pass in the scale parameter is copied into internal QuickDraw3D data structures. If QuickDraw3D cannot allocate memory for those structures, Q3ScaleTransform_New returns the value NULL.

DESCRIPTION

3D Graphics Programming with QuickDraw 3D - 20 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker