Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
DrawSprocket Functions / Handling a Mouse


DSpContext_GlobalToLocal

Use the DSpContext_GlobalToLocal function to translate a point in global coordinates into local coordinates for a context.

OSStatus DSpContext_GlobalToLocal (
DSpContextReference inContext,
Point *ioPoint);
inContext
A reference to the context whose local coordinates you want to translate into.
ioPoint
Takes a point in global coordinates. On exit, contains the point in local coordinates.
function result
A result code.
DESCRIPTION
You pass the DSpContext_GlobalToLocal function a point in global coordinates in the ioPoint parameter and the context in which the point is located in the inContext parameter. The function returns, in the ioPoint parameter, the point in the context's local coordinates.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996