|
|
|
|
MGL_globalToLocal
Converts a point from global to local coordinates.
Declaration
void MGLAPI MGL_globalToLocal(
point_t *p)
Prototype In
mgraph.h
Parameters
p |
Pointer to point to be converted |
Description
This function converts a coordinate from global coordinates to local coordinates. Global coordinates are defined relative to the entire output device context surface, while local coordinates are relative to the currently active viewport.
This routine is usually used to convert mouse coordinate values from global screen coordinates to the local coordinate system of the currently active viewport.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com