18 Creating and Managing Trackers

18 Q3Tracker_New

You can use the Q3Tracker_New function to create a new tracker.

TQ3TrackerObject Q3Tracker_New (TQ3TrackerNotifyFunc notifyFunc);
notifyFunc A pointer to a tracker notify function. See page 18-52 for information on writing a tracker notify function.

DESCRIPTION


The Q3Tracker_New function returns, as its function result, a reference to a new tracker object. The notifyFunc parameter specifies the tracker's notify function, which is called whenever the position or orientation of the tracker changes. If you want to poll for such changes instead of being notified, set notifyFunc to NULL. The new tracker is active and has both its position threshold and its orientation threshold set to 0. If Q3Tracker_New cannot create a new tracker, it returns NULL.

DESCRIPTION

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

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker