MGL_lineRelCoord
Draws a relative line.
Declaration
void MGLAPI MGL_lineRelCoord(
int dx,
int dy)
Prototype In
mgraph.h
Parameters
dx |
Amount to offset in x coordinate |
dy |
Amount to offset in y coordinate |
Description
Draws a line from the current position (CP) to the relative location that is a distance of (dx,dy) away from the CP. Thus the location of the next point on the line is:
(CP.x + dx, CP.y + dy)
The CP is updated to this value.
See Also
MGL_line, MGL_lineCoord, MGL_lineTo, MGL_lineToCoord, MGL_lineRel, MGL_moveRel, MGL_moveRelCoord
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com