Hit detection
Because canvas graphics derive from MGraphic, they have the MGraphic::Find function that can be implemented in the concrete classes for sophisticated hit detection. See 2-D and 3-D Graphics for information on how to implement the MGraphic::Find function.
MCanvasGraphic also has a Hit function that takes a TGPoint as a parameter that provides a simple approach for common hit detection situations. This function is implemented for all MCanvasGraphic concrete classes.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker