| Home
| Previous
| Next
| Up

MGL_scanLine

Fills a specified scanline with no clipping, in screen space.

Declaration

void MGLAPI MGL_scanLine(
int y,
int x1,
int x2)

Prototype In

mgraph.h

Parameters

y | y coordinate of scanline to fill
x1 | Starting x coordinate of scanline to fill
x2 | Ending x coordinate of scanline to fill

Description

MGL_scanLine fills the specified portion of a scanline in the current attributes and fill pattern. This can be used to implement higher level complex fills, such as region fills, floodfills etc.

Note: This function is intended as a low level building block, and as such does not do any clipping and takes coordinates in screen space directly. If you want to draw a clipped, viewport relative scanline use the MGL_lineCoord family of functions.

See Also

MGL_penStyleType, MGL_setPenBitmapPattern, MGL_setPenPixmapPattern, MGL_lineCoord

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com