Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_gpolygon()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gPolygon()
 Draw a polygon
------------------------------------------------------------------------------
 C Prototype

     #include "llibg.api"
     void _gPolygon(
                     int iVertCount,
                     LLG_LPPOINT lpVertexArray,
                     BOOL bFilled,
                     DWORD dwOutlineColor,
                     DWORD dwFillColor,
                     int iMode
                   )

 Arguments

     iVertCount is the number of vertices, beginning with one (1).

     lpVertexArray is a pointer to an array of LLG_POINT structures in
     which you define the coordinates of each of the vertices.  This array
     must have iVertCount elements defined.

     bFilled is a flag that you specify as true (.T.) to draw a filled
     polygon.

     dwOutlineColor is the outline color.

     dwFillColor is the fill color.

     The range of valid values for all color parameters is limited to the
     number of colors available in the selected video mode.  For example, in
     16-color modes, valid values are between zero and 15, and in 256-color
     modes, valid values are between zero and 255.

     iMode is the display mode (see _gEllipse() for a table of possible
     values).

 Notes

     .  Restrictions:  You cannot use this function unless you have
        set the screen to one of the graphic modes using _gModeSet().  This
        function respects the screen clipping region as set by _gClipSet().

 Files   Library is LLIBG.LIB, header file is Llibg.api.


See Also: _gClipSet() _gFrame() _gEllipse() _gLine()

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