Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethitcode(3g) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gethitcode()  —  Silicon Graphics

NAME

gethitcode − returns the current system hitcode

SPECIFICATION

C
long gethitcode()

FORTRAN
integer*4 function gethit()

Pascal
function gethitcode: longint;

DESCRIPTION

gethitcode 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 (see below), with one bit for each clipping plane.  (Systems configured without near-far clipping return zeros (0s) for the near and far clipping planes.) 

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

SEE ALSO

clearhitcode, pick, select IRIS Graphics Programming, Section 9.2, Picking

NOTE

This routine is available only in immediate mode. 

Version 2.5  —  April 22, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026