greset(3G) greset(3G)
NAME
greset - resets all global state attributes to their initial
values
SPECIFICATION
C greset()
FORTRAN subroutine greset
DESCRIPTION
greset resets all global state attributes to their initial
values; you can call these attributes at any time.
______________________________________
|State Attribute | Initial Value |
______________________________________
| |
backface mode off
| |
blinking turned off
| |
buffer mode single
| |
color undefined
| |
color map mode one map
| |
concave off
| |
cursor 0 (arrow)
| |
depthcue mode off
| |
display mode color map
| |
drawmode NORMALDRAW
| |
font 0*
| |
linestyle 0 (solid)
| |
linewidth 1 pixel
| |
lsrepeat 1
| |
pattern 0 (solid)
| |
picking size 10x10 pixels
| |
RGB color undefined
| |
RGB writemask undefined
| |
shademodel flat
| |
shaderanges 0,7,0,1279
| |
viewport entire screen
| |
writemask all planes enabled
| |
zbuffer mode off
|_____________________________________|
*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.
Page 1 (printed 8/20/87)
greset(3G) greset(3G)
greset also defines certain entry in the color map, as
follows:
_______________________________________________
| | | RGB Value |
________________________
| Index | Name | |
| | 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
winopen
Programming Guide, Section 2.1, Initialization
NOTE
This routine is available only in immediate mode.
Page 2 (printed 8/20/87)