3 Determining Object Types
Q3Object_IsType
function to determine whether a QuickDraw3D object is of a specific type.
TQ3Boolean Q3Object_IsType ( TQ3Object object, TQ3ObjectType type);object
A QuickDraw3D object.type
A type identifier.
Q3Object_IsType
function returns a Boolean value that indicates whether the QuickDraw3D object specified by the object
parameter is of the type specified by the type
parameter (kQ3True
) or is of some other type (kQ3False
). You can pass any valid QuickDraw3D type identifier in the type
parameter (not just those that are returned by the Q3Object_GetType
function). For example, you can use Q3Object_IsType
like this:
if (Q3Object_IsType(myObject, kQ3ShapeTypeGeometry)) return MyDoGeometry(object);
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker