17 TQ3ObjectWriteMethod

You can define a method to write an object of your custom type to a file object.

typedef TQ3Status (*TQ3ObjectWriteMethod) (
const void *object, 
TQ3FileObject file);
object A QuickDraw3D object.
file A file object.

DESCRIPTION


Your TQ3ObjectWriteMethod function should write the root object data of the object specified by the object parameter, starting at the current location in the file object specified by the file parameter. You should use the primitive data type _Write functions described in "Reading and Writing File Data," beginning on page 17-27 (for example, Q3Uns64_Write and Q3Point3D_Write).

RESULT CODES


Your TQ3ObjectWriteMethod function should return kQ3Success if it is successful and kQ3Failure otherwise.

DESCRIPTION
RESULT CODES

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker