17 Data Structures

17 Unknown Object Data Structures

QuickDraw3D returns data about unknown text or binary data objects in an unknown text data structure or an unknown binary data structure. An unknown text data structure is defined by the TQ3UnknownTextData data type.

typedef struct TQ3UnknownTextData {
 char       *objectName;     /*'\0' terminated*/
 char       *contents;     /*'\0' terminated*/
} TQ3UnknownTextData;
objectName A pointer to the name of the unknown text object. This name is a C string terminated by the null character ('\0').
contents A pointer to the contents of the unknown text object. This string is a C string terminated by the null character ('\0').
An unknown binary data structure is defined by the TQ3UnknownBinaryData data type.

typedef struct TQ3UnknownBinaryData {
 TQ3ObjectType         objectType;
 unsigned long         size;
 TQ3Endian         byteOrder;
 char         *contents;
} TQ3UnknownBinaryData;
objectType The type of the data in the unknown binary object.
size The size, in bytes, of the data in the unknown binary object.
byteOrder The order in which the bytes in a word are addressed. This field must contain kQ3EndianBig or kQ3EndianLittle.
contents A pointer to a copy of the data of the unknown binary object.

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