Previous Book Contents Book Index Next

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


DSpContext_LocalToGlobal

You can use the DSpContext_LocalToGlobal function to translate a point's coordinates given in a context's local coordinates into global coordinates.

OSStatus DSpContext_LocalToGlobal (
			DSpContextReference inContext,
			Point *ioPoint);
inContext
The context whose local coordinate system describes the point's coordinates.
ioPoint
Takes a point's local coordinates. On exit, contains the point's global coordinates.
function result
A result code.
DESCRIPTION
You pass the function the local coordinates of a point in the ioPoint parameter and, in the inContext parameter, the context to which the local coordinates belong. The function returns, in the ioPoint parameter, the global coordinates of the point.

CALLING RESTRICTIONS
Do not call this function during an interrupt.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996