greset() — Silicon Graphics
NAME
greset - resets all global attributes to their initial values
SPECIFICATION
C
greset()
FORTRAN
subroutine greset
Pascal
procedure greset;
DESCRIPTION
greset returns the following global state variables to their initial values, and can be called at any time.
| State Variable | Initial Value |
| available bitplanes | all bitplanes1 |
| backface mode | off |
| blinking | colors 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 |
| picking size | 10×10 pixels |
| reset linestyle | on |
| RGB color | undefined |
| RGB writemask | undefined |
| shaderange | (0,7,0,1023) |
| texture | 0 (solid) |
| viewport | entire screen |
| writemask | all planes enabled1 |
| zbuffer mode | off |
1. If there are more than three bitplane boards installed, the number of available planes is set to twelve.
2. The color and writemask of the cursor are set to 1.
3. Rasterfont 0 is a Helvetica-like font.
In addition, greset puts a two-dimensional orthographic projection transformation on the matrix stack with left, right, bottom, and top set to the boundaries of the screen. It also turns the cursor on; 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 an exception. It is set to YMAXSCREEN/2 and has range 0..YMAXSCREEN.
greset also defines every 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
ginit, gbegin
NOTE
This command can be used only in immediate mode.
Version 2.4 — May 08, 1986