Supported Browsers Home   
DrawRectLin Previous   
DrawStippleLineInt Next   
GA_2DRenderFuncs Up   

DrawScanList

Draws a list of solid scanlines.

Declaration

void NAPI GA_2DRenderFuncs::DrawScanList(
    N_int32 y,
    N_int32 length,
    N_int16 *scans)

Prototype In

snap/graphics.h

Parameters

y

Y coordinate for scanline

length

Number of scanlines in the list

scans

Pointer to an array of scanline data

 

Description

This function renders a list of solid scanlines starting at the specified location in the currently active color and mix. The scanline coordinates are passed as an array of 16-bit integer coordinates, packed with the X1 coordinate followed by the X2 coordinate and so on. For each scanline in the list, this routine will render a scanline from X1 to X2 (exclusive) at increasing Y coordinates. For scanlines where X2 < X1, the X1 and X2 coordinates will be swapped, and for scanlines where X1 = X2, the scanline will be skipped and nothing will be drawn. This function will always be provided by accelerated drivers, and will be implemented with whatever hardware rendering function provides the fastest possible method of rendering scanlines with the installed hardware. It is also one of the workhorse functions that will be used by high level rendering code for drawing non-polygonal solid shapes (ellipses, wedges, regions etc.).

See Also

DrawScan, DrawPattScanList, DrawColorPattScanList

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