greset() — Silicon Graphics
NAME
greset − resets all global state attributes to their initial values
SPECIFICATION
C
greset()
FORTRAN
subroutine greset
Pascal
procedure greset;
DESCRIPTION
greset returns all global state attributes to their initial values; you can call these attributes at any time.
| State 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 |
| 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 3 bitplane boards installed,
the number of available planes is set to 12.
2. The color of the cursor is set to 1.
3. The writemask of the cursor is set to all 1’s.
4. Rasterfont 0 is a Helvetica-like font.
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 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 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 IRIS Graphics Programming, Section 2.1, Initialization
NOTE
This routine is available only in immediate mode.
Version 2.5r1 — October 29, 1986