Important: The information in this document is obsolete and should not be used for new development.
MapMapping
You can use theMapMappingfunction 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
TheMapMappingfunction postmultiplies the target mapping by the source mapping, and returns the result in thetargetparameter.The result of passing the function result of
MapMappingtotheGXMapShapefunction is equivalent to passing the result of one call toGXMapShapeto 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
TheGXMapShapefunction is described in the chapter Transform Objects in Inside Macintosh: QuickDraw GX Objects.