Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - fg_drawpolygon http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              fg_drawpolygon

   Usage
   #include <fg.h>
   void  far  fg_drawpolygon(fg_color_t color, int mode,  int  mask,  int
   line_type,  unsigned  int  vertices, const  fg_coord_t  far *polygon,
   fg_const_pbox_t clipbox),

   Description
   Draw  a  polygon. The line_type is the same as  for  fg_drawline.  The
   integer vertices is the number of corners in the polygon. The  pointer
   to  coordinates polygon is the array of coordinate pairs that make  up
   the polygon. The last coordinate pair in the polygon must be equal  to
   the first pair to make a closed figure.

   Example
   void big_open_triangle(void)
   {
   fg_coord_t poly[8];

   poly [0] = 0;
   poly [1] = 0;
   poly [2] = fg.displaybox [FG_X2];
   poly [3] = fg.displaybox [FG_Y2];
   poly [4] = fg.displaybox [FG_X2];
   poly [5] = 0;
   poly [6] = 0;
   poly [7] = 0;
   fg_drawpolygon(FG_LIGHT_WHITE, FG_MODE_SET, ~0,
   FG_LINE_SOLID, 3, poly, fg.displaybox);
   }


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