Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pick(3g) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pick()  —  Silicon Graphics

NAME

pick − puts the system in picking mode

SPECIFICATION

C
pick(buffer, numnames)
short buffer[];
long numnames;

FORTRAN
subroutine pick(buffer, numnam)
integer*2 buffer(*)
integer*4 numnam

Pascal
procedure pick(var buffer: Short; numnames: longint);

DESCRIPTION

pick facilitates the cursor as a pointing object.  When you draw an image in picking mode, the screen does not change.  It places a special viewing matrix on the stack, which discards everything in the image that does not intersect a small region around the lower left corner of the cursor. 

The routines that do intersect the picking region are hits and store the contents of the name stack in buffer. numnames specifies the maximum number of names the system saves.  Picking does not work if you issue a new viewport routine while in the pick mode. 

SEE ALSO

clearhitcode, endpick, endselect, gethitcode, picksize, select, pushname, popname, loadname IRIS Graphics Programming, Section 9.2, Picking

NOTE

This routine is available only in immediate mode. 

Version 2.5r1  —  October 29, 1986

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