greset(3G)
greset - resets graphics state
As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.
NAME greset - resets graphics state FORTRAN 77 SPECIFICATION subroutine greset PARAMETERS none DESCRIPTION greset resets a portion of the graphics state of a window to its default. See the following table for a listing of the state affected. _____________________________________ State | Value _____________________________________ backface mode off blinking off buffer mode single color undefined color map mode one map concave off cursor 0 (arrow) depth range Zmin,Zmax depthcue mode off display mode color map drawmode NORMDR font 0 linestyle 0 (solid) linewidth 1 pixel lsrepeat 1 pattern 0 (solid) picking size 10x10 pixels RGB color undefined RGB shaderange undefined RGB writemask undefined shademodel GOURAU shaderange 0,7,Zmin,Zmax viewport entire screen writemask all planes enabled zbuffer mode off _____________________________________ | | Notes o Font 0 is a Helvetica-like font. o Zmin and Zmax are the minimum and maximum values that you can store in the z-buffer. These depend on the graphics hardware and are returned by getgde(GDZMIN) and getgde(GDZMAX). o On IRIS-4D B and G models, greset also sets lsbackup(FALSE) and resetls(TRUE). greset loads a 2-D orthographic projection transformation on the matrix stack with left, right, bottom, and top set to the boundaries of the screen (not the current window). It also turns on the cursor. greset loads certain entries 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 MAGENT 255 0 255 6 CYAN 0 255 255 7 WHITE 255 255 255 all others unnamed unchanged _______________________________________________ | | It loads the PUPDRW color map with the following entries: _____________________________________ RGB Value ____________________ Index | Name | Red | Green | Blue _____________________________________ 1 PUPCOL 255 0 0 2 PUPBLK 0 0 0 3 PUPWHT 255 255 255 _____________________________________ | | It loads the CURSDR color map with the following entries: ____________________________ RGB Value ____________________ Index | Red | Green | Blue ____________________________ 1 255 0 0 2 255 255 255 3 255 0 0 ____________________________ | | On systems that do not have a 2-plane cursor, only index 1 is loaded. SEE ALSO getgde NOTES This routine is available only in immediate mode. greset sets the viewport and the projection transformation to values which assume that the current window occupies the entire screen, i.e. it was created via ginit or gbegin. If this is not the case, you will probably want to call reshape and load a different projection transformation after calling greset. This routine remains a part of the Graphics Library for reasons of backwards compatibility only. We do not recommend the use of this routine in new development.