DrawPattTrap
Draws a monochrome patterned trapezoid.
Declaration
void NAPI GA_2DRenderFuncs::DrawPattTrap(
GA_trap *trap)
Prototype In
snap/graphics.h
Parameters
trap |
Pointer to the GA_trap structure describing the trapezoid |
Description
This function renders a monochrome patterned, flat topped and bottomed trapezoid in the currently active color, mix and monochrome 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, Set8x8MonoPattern, Use8x8MonoPattern
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com