Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ greset(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

greset(3G)  —  Silicon Graphics

NAME

greset − resets all global state attributes to their initial values

SPECIFICATION

C
greset()

FORTRAN
subroutine greset

Pascal
procedure greset;

DESCRIPTION

greset resets all global state attributes to their initial values; you can call these attributes at any time.  See the following table for a listing of global state attributes. 

Attribute Initial Value
available bitplanes all bitplanes1
backface mode off
blinking turned off
color undefined
color map mode one map
cursor 0 (arrow)2
depthcue mode off
display mode single buffer
font 0 3
linestyle 0 (solid)
linestyle backup off
linewidth 1 pixel
lsrepeat 1
pattern 0 (solid)
picking size 10×10 pixels
reset linstyle on
RGB color undefined
RGB writemask undefined
shaderanges 0,7,0,1023
viewport entire screen
writemask all planes enabled1
zbuffer mode off

1.  If there are more than 3 bitplane boards installed,
the number of available bitplanes is set to 12.
2.  The color is set to 1 and the writemask and cursor
are set to 0xfff.
3.  Rasterfont 0 is a Helvetica-like font.

greset puts a 2-D orthographic projection transformation on the matrix stack with left, right, bottom, and top set to the boundaries of the screen.  It also turns on the cursor; ties it to MOUSEX and MOUSEY; and unqueues all buttons, valuators, and the keyboard.  Each button is set to FALSE and untied from valuators.  Each valuator is set to XMAXSCREEN/2; the range is 0..XMAXSCREEN.  MOUSEY is set to YMAXSCREEN/2 and has range 0..YMAXSCREEN. 

greset also defines certain entry in the color map, as follows:

Index Name RGB Value
Red Green Blue
0 BLACK 0 0 0
1 RED 255 0 0
2 GREEN 0 255 0
3 YELLOW 255 255 0
4 BLUE 0 0 255
5 MAGENTA 255 0 255
6 CYAN 0 255 255
7 WHITE 255 255 255
all others unnamed undefined

SEE ALSO

gbegin, ginit, winopen Programming Guide, Section 2.1, Initialization

NOTE

This routine is available only in immediate mode. 

Version 3.6  —  December 20, 1987

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