Supported Browsers Home   
DrawColorPattScanList Previous   
DrawEllipse Next   
GA_2DRenderFuncs Up   

DrawColorPattTrap

Draws a color patterned trapezoid.

Declaration

void NAPI GA_2DRenderFuncs::DrawColorPattTrap(
    GA_trap *trap)

Prototype In

snap/graphics.h

Parameters

trap

Pointer to the GA_trap structure describing the trapezoid

 

Description

This function renders a color patterned, flat topped and bottomed trapezoid in the currently active mix and color pattern. The parameters for the trapezoid to be rendered are passed in the GA_trap structure (note that all coordinates are in 16.16 fixed point format). This function will always be provided, and will be the workhorse function for rendering solid 2D polygons. After this function has been called, the driver will have updated the y, x1 and x2 variables in the GA_trap structure to reflect the final values after scan converting the trapezoid.  This ensures that the high level code can properly join up connected trapezoids to complete the rendering of a larger more complex polygon.  Refer to DrawTrap for more information on the algorithm used to implement this drawing function.

See Also

DrawTrap, DrawColorPattTrap, DrawScanList, Set8x8ColorPattern, Use8x8ColorPattern

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