DrawClippedLineInt

Draws a solid, single pixel wide line with integer coordinates.

Declaration

N_int32 NAPI GA_2DRenderFuncs::DrawClippedLineInt(
    N_int32 x1,
    N_int32 y1,
    N_int32 x2,
    N_int32 y2,
    N_int32 drawLast,
    N_int32 clipLeft,
    N_int32 clipTop,
    N_int32 clipRight,
    N_int32 clipBottom)

Prototype In

snap/graphics.h

Parameters

x1

X1 coordinate

y1

Y1 coordinate

x2

X2 coordinate

y2

Y2 coordinate

drawLast

1 to draw last pixel, 0 to skip it

clipLeft

Left coordinate for clip rectangle (inclusive)

clipTop

Top coordinate for clip rectangle (inclusive)

clipRight

Right coordinate for clip rectangle (exclusive)

clipBottom

Bottom coordinate for clip rectangle (exclusive)

 

Description

This function renders a solid line at the specified location and the currently active color and mix, clipping to the pass in clip rectangle. This function is really intended as a fast way to handle clipped lines if the hardware can do hardware clipping, and to allow filters drivers to handle clipping efficiently (ie: multi controller, portrait etc).

The output is clipped against the passed in clipping rectangle.

See Also

GA_2DRenderFuncs_DrawClippedBresenhamLine, DrawClippedStippleLine, GA_2DRenderFuncs_DrawClippedStippleLineInt, DrawDrawClippedStyleLineInt

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