gethit(3G)

gethit - returns the current hitcode

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     gethit - returns the current hitcode

FORTRAN 77 SPECIFICATION
     integer*4 function gethit()

PARAMETERS
     none

DESCRIPTION
     gethit returns the global variable hitcode, which keeps a cumulative
     record of clipping plane hits. It does not change the hitcode value.

     The hitcode is a 6-bit number, with one bit for each clipping plane:

                  5        4        3        2        1        0
               _____________________________________________________
                 far      near     top     bottom   right     left
               _____________________________________________________
               |
                       |
                                |
                                         |
                                                  |
                                                           |
                                                                    |


SEE ALSO
     clearhitcode, gselect, pick

NOTES
     This routine is available only in immediate mode.

     The symbolic values for the hitcode bits shown above are defined in
     <gl/fget.h>.

     This routine only functions on IRIS-4D B and G models, and therefore we
     advise against its use in new development.