screenspace man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



screenspace(3G)						       screenspace(3G)

NAME
     screenspace - map world space to absolute screen coordinates

C SPECIFICATION
     void screenspace()

PARAMETERS
     none

DESCRIPTION
     screenspace sets the projection matrix and viewport of the current window
     so as to map world space to absolute screen coordinates (instead of to
     the more usual window-relative screen coordinates).  This provides a
     convenient coordinate system for operations that are not constrained to a
     window, e.g. reading pixels.

     screenspace is equivalent to:

	  long xmin, ymin;

	  getorigin(&xmin, &ymin);
	  viewport(-xmin, getgdesc(GD_XPMAX)-xmin,
		   -ymin, getgdesc(GD_YPMAX)-ymin);
	  ortho2(-0.5, getgdesc(GD_XPMAX)+0.5,
		 -0.5, getgdesc(GD_YPMAX)+0.5);

SEE ALSO
     fullscrn, getgdesc, getorigin, viewport, ortho2

NOTE
     This routine is available only in immediate mode.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net