Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>setpolyfillmode()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetPolyFillMode()
Set the mode used for polygon filling
------------------------------------------------------------------------------

Syntax
SetPolyFillMode( <hDC>, <nMode> )   -->   nOldMode

Arguments
<hDC> specifies the device context for a window.

<nMode> is an integer specifying the desired polygon-filling
mode, with value either ALTERNATE or WINDING (defined in
WINDOWS.CH).  The default is ALTERNATE.

Returns
If successful, the return value is an integer giving the
previous mode.  Otherwise zero (0) is returned.

Description
The polygon filling mode determines the way polygons are
treated:

     ALTERNATE      the area between odd-numbered and even-numbered
                    polygon sides is filled on each scan line

     WINDING        the direction in which a shape was drawn is used
                    to decide how to fill an area; you'll want to
                    experiment!

Example



See Also: GetDC() GetPolyFillMode() Polygon()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson