Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethitcode(3) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

gethitcode(3)  —  Silicon Graphics R1c

NAME

gethitcode - return the current system hitcode

SYNOPSIS

C
short gethitcode()

FORTRAN
integer*2 function gethit()

Pascal
function gethitcode: Short;

DESCRIPTION

Gethitcode returns the global variable hitcode, which keeps a cumulative record of clipping plane hits.  It does not change the hitcode value in any way. 

The hitcode is a six-bit number, as shown below, with one bit for each clipping plane.  (Systems configured without near-far clipping always return 0’s for the near and far clipping planes.) 

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

SEE ALSO

clearhitcode, pick, select

NOTE

This command can only be used in immediate mode. 

Version 2.3  —  July 04, 1985

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