Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pick(3g) — GL2 W2.4

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 use of the cursor as a pointing object.  When an image is drawn in picking mode, the screen does not change.  Instead, a special viewing matrix is placed on the stack, and everything in the image that does not intersect a small neighborhood around the lower left corner of the cursor is discarded.  The commands that do intersect the picking region are “hits” and cause the contents of the name stack to be stored in buffer.  numnames specifies the maximum number of names to be saved by the system.  Picking will not work if a new viewport command is issued while in the pick mode. 

SEE ALSO

clearhitcode, endpick, endselect, gethitcode, picksize, select, pushname, popname, loadname

NOTE

This command can be used only in immediate mode. 

Version 2.4  —  May 08, 1986

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