7 Creating and Manipulating Matrix Transforms

7 Q3MatrixTransform_New

You can use the Q3MatrixTransform_New function to create a new matrix transform.

TQ3TransformObject Q3MatrixTransform_New (
const TQ3Matrix4x4 *matrix);
matrix On entry, a pointer to a 4-by-4 matrix that defines the desired new transform.

DESCRIPTION


The Q3MatrixTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeMatrix using the data passed in the matrix parameter. The data you pass in the matrix parameter is copied into internal QuickDraw3D data structures. If QuickDraw3D cannot allocate memory for those structures, Q3MatrixTransform_New returns the value NULL.

It is your responsibility to ensure that the matrix specified by the matrix parameter is affine and invertible. QuickDraw3D does not check for these qualities.

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