MGL_lineEngine
Generates the set of integer points on a line, given integer coordinates.
Declaration
void MGLAPI MGL_lineEngine(
int x1,
int y1,
int x2,
int y2,
void (MGLAPIP plotPoint)(
long x,
long y))
Prototype In
mgraph.h
Parameters
x1 |
X coordinate for first endpoint |
y1 |
Y coordinate for first endpoint |
x2 |
X coordinate for second endpoint |
y2 |
Y coordinate for second endpoint |
plotPoint |
User supplied pixel plotting routine |
Description
This function generates the set of points on a line, and calls a user supplied plotPoint routine for every point generated.
See Also
MGL_lineEngineFX, MGL_ellipseEngine, MGL_ellipseArcEngine
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com