greset(3G)

greset - resets graphics state

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     greset - resets graphics state

C SPECIFICATION
     void 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         NORMALDRAW
                        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       GOURAUD
                        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 getgdesc(GD_ZMIN) and getgdesc(GD_ZMAX).
          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        MAGENTA   255        0      255
               6        CYAN        0      255      255
               7        WHITE     255      255      255
           all others   unnamed         unchanged
          _______________________________________________
          |












                                                         |














     It loads the PUPDRAW color map with the following entries:

          ________________________________________
                                   RGB Value
                              ____________________
           Index |   Name    | Red
                                   | Green | Blue
          ________________________________________
             1     PUP_COLOR   255      0      0
             2     PUP_BLACK     0      0      0
             3     PUP_WHITE   255    255    255
          ________________________________________
          |






                                                  |








     It loads the CURSORDRAW 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
     getgdesc

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 reshapeviewport 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.