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++ 3.0r4 - <b>fg_box_enclose</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fg_box_enclose

Usage


   #include <fg.h>
   fg_coord_t far fg_box_enclose(fg_const_pbox_t b1,
                                 fg_const_pbox_t b2);

Description

   Returns nonzero if a box completely encloses another.

Example 

   void fg_c_readbox(fg_const_pbox_t b, fg_color_t *p)
   {
   fg_coord_t y, x;

   assert(p && b);
   assert(fg_box_enclose(fg.displaybox,b));

   for (y = b[FG_Y1]; y < b[FG_Y2]; y++)
       for (x = b[FG_X1]; x < b[FG_X2]; x++)

           *p++ = fg_readdot(x,y);
   }





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