7 Creating and Manipulating Translate Transforms

7 Q3TranslateTransform_New

You can use the Q3TranslateTransform_New function to create a new translate transform.

TQ3TransformObject Q3TranslateTransform_New (
const TQ3Vector3D *translate);
translate A vector whose three fields specify the desired translation along each coordinate axis.

DESCRIPTION


The Q3TranslateTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeTranslate using the data passed in the translate parameter. The transform translates an object by the values in translate->x, translate->y, and translate->z, respectively. The data you pass in the translate parameter is copied into internal QuickDraw3D data structures. If QuickDraw3D cannot allocate memory for those structures, Q3TranslateTransform_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