1 Managing Sets

1 Q3Set_Add

You can use the Q3Set_Add function to add an element to a set.

TQ3Status Q3Set_Add (
TQ3SetObject set, 
TQ3ElementType type, 
const void *data);
set A set object.
type An element type.
data A pointer to the element's data.

DESCRIPTION


The Q3Set_Add function adds the element specified by the type and data parameters to the set specified by the set parameter. The set must already exist when you call Q3Set_Add. Note that the element data is copied into the set. Accordingly, you can reuse the data parameter once you have called Q3Set_Add.

If the specified element type is a custom element type, Q3Set_Add uses the custom type's kQ3MethodTypeElementCopyAdd or kQ3MethodTypeElementCopyReplace custom methods. See the chapter "QuickDraw 3D Objects" for complete information on custom element types.

DESCRIPTION

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker