*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/greset (3)              
Title
Content
Arch
Section
 

Contents


greset(3G)							    greset(3G)


NAME    [Toc]    [Back]

     greset - resets graphics state

C SPECIFICATION    [Toc]    [Back]

     void greset()

PARAMETERS    [Toc]    [Back]

     none

DESCRIPTION    [Toc]    [Back]

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




									Page 1






greset(3G)							    greset(3G)



	  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.





									Page 2






greset(3G)							    greset(3G)


SEE ALSO    [Toc]    [Back]

      
      
     getgdesc

NOTES    [Toc]    [Back]

     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.


									PPPPaaaaggggeeee 3333
[ Back ]
 Similar pages
Name OS Title
DTresetparser IRIX resets a DAT audio data parser
CDresetparser IRIX resets a CD digital audio data parser
dglopen IRIX opens a Graphics Library connection to a graphics server
DtPrintResetConnection HP-UX resets the print display connection managed by a DtPrintSetupBox
XmImMbResetIC HP-UX An input manager function that resets the input context for a widget
mbsinit NetBSD determines whether the state object is initial state
acl_first_entry Tru64 Resets the current ACL entry to be the first ACL entry
gexit IRIX exits graphics
xgc Tru64 X graphics demo
tga OpenBSD TGA graphics driver
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service