Q3Pick_GetHitData
You can use theQ3Pick_GetHitData
function to get an item in the hit list of a pick object.
TQ3Status Q3Pick_GetHitData ( TQ3PickObject pick, unsigned long index, TQ3HitData *hitData);
pick
- A pick object.
index
- An index into a hit list. This number should be between 0 and one less than the number of items in the hit list of the specified pick object, inclusive.
hitData
- On entry, a pointer to a hit data structure. On exit, a pointer to a hit data structure for the specified item in the hit list of the specified pick object.
DESCRIPTION
TheQ3Pick_GetHitData
function returns, in thehitData
parameter, a pointer to a hit data structure for the item that has the index specified by theindex
parameter in the hit list associated with the pick object specified by thepick
parameter. The hit data structure whose address is passed in thehitData
parameter must be created by your application. QuickDraw 3D allocates memory to hold any additional information returned in the hit data structure; you should callQ3Hit_EmptyData
to dispose of that memory when you are finished using the hit data.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help