Important: The information in this document is obsolete and should not be used for new development.
MapMapping
You can use theMapMapping
function to concatenate two mappings.
gxMapping *MapMapping(gxMapping *target, const gxMapping *source);
target
- A pointer to the mapping to be modified. On return, contains the result of the concatenation.
source
- A pointer to the mapping to be concatenated with the target mapping.
- function result
- A pointer to the resultant mapping, which is also the target mapping.
DESCRIPTION
TheMapMapping
function postmultiplies the target mapping by the source mapping, and returns the result in thetarget
parameter.The result of passing the function result of
MapMapping
totheGXMapShape
function is equivalent to passing the result of one call toGXMapShape
to another call toGXMapShape
, as shown below (for the shapes
):
GXMapShape(s, target); GXMapShape(s, source);The same results would be obtained more efficiently and perhaps more accurately by making these calls:
MapMapping(target, source); GXMapShape(s, target);ERRORS, WARNINGS, AND NOTICES
Errors mapping_is_nil SEE ALSO
TheGXMapShape
function is described in the chapter Transform Objects in Inside Macintosh: QuickDraw GX Objects.