18 Creating and Managing Trackers

18 Q3Tracker_SetEventCoordinates

You can use the Q3Tracker_SetEventCoordinates function to record the settings (coordinates) of a tracker at a particular time.

TQ3Status Q3Tracker_SetEventCoordinates (
TQ3TrackerObject trackerObject, 
unsigned long timeStamp, 
unsigned long buttons, 
const TQ3Point3D *position, 
const TQ3Quaternion *orientation);
trackerObject
A tracker object.
timeStamp A time stamp.
buttons The button state value of the specified tracker, or NULL.
position The position of the specified tracker, or NULL.
orientation The orientation (in radians) of the specified tracker, or NULL.

DESCRIPTION


The Q3Tracker_SetEventCoordinates function places into the ring buffer of event coordinates for the tracker specified by the trackerObject parameter the values specified in the buttons, position, and orientation parameters. The event coordinates are marked with the time stamp specified by the timeStamp parameter. If the tracker's ring buffer is full, the oldest item in the buffer is discarded.

A tracker's ring buffer can contain up to 10 items. Time stamps of items in the buffer increase from oldest to newest.<8bat>u

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