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

Usage

   #include <fg.h>
   int far fg_lineclip(fg_const_pbox_t clip, fg_const_pline_t
                       line_in, fg_pline_t line_out);


Description

   clip        The clipping box for the line line_in.
   line_in     The line that is to be tested against the clipping box.
   line_out    The output line that is a clipped version of line_in.

   Clipping is an area prone to problems with roundoff and disconcerting
   behavior. If the programmer is not satisfied with the performance of the
   functions that call this routine (fg_drawlineclip, fg_drawbox, and
   fg_drawthickline) the programmer may supply an alternative
   implementation.

Return Value

   Returns non-zero if one or more pixels of the line line_out lie inside
   the clipping box clip. Returns zero otherwise.





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