gselect(3G) — Silicon Graphics
NAME
gselect − puts the system in selecting mode
SPECIFICATION
C
gselect(buffer, numnames)
short buffer[];
long numnames;
FORTRAN
subroutine gselect(buffer, numnam)
integer*2 buffer(1)
integer*4 numnam
Pascal
procedure gselect(var buffer: Short; numnames:
longint);
DESCRIPTION
gselect turns on selecting mode. The current viewing matrix defines the selecting region when gselect executes. However, you can construct a viewing matrix after selecting mode has begun. gselect and pick are identical except gselect allows you to create a viewing matrix in selection mode.
numnames specifies the maximum number of names the system saves. Names are 16-bit numbers, which you load on the name stack. Each drawing routine that intersects the selecting region causes the contents of the name stack to be stored in buffer.
SEE ALSO
endpick, endselect, initnames, loadname, pick, picksize, popname, pushname Programming Guide, Section 9.3, Selecting
NOTE
This routine is available only in immediate mode.
BUGS
When using a debugger, do not stop the graphics between gselect and endselect because the graphics are frozen and results cannot appear on the screen.
Version 3.6 — December 20, 1987