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_fillpolygon http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              fg_fillpolygon

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

   Description
   Fill  a polygon. This requires the allocation of memory and if  memory
   is exhausted will return 0. Returns non-zero if successful. Figure may
   be  concave  as  well as convex,  undefined  (but  relatively  benign)
   results will occur with sides that cross.

   Example
   void big_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_fillpolygon(FG_LIGHT_WHITE,FG_MODE_SET,~0,3,poly,fg.displaybox);
   }


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