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

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

Contents


screenspace(3G)						       screenspace(3G)


NAME    [Toc]    [Back]

     screenspace - map world space to absolute screen coordinates

C SPECIFICATION    [Toc]    [Back]

     void screenspace()

PARAMETERS    [Toc]    [Back]

     none

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     fullscrn, getgdesc, getorigin, viewport, ortho2

NOTE    [Toc]    [Back]

     This routine is available only in immediate mode.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
mapw2 IRIX maps a point on the screen into 2-D world coordinates
mapw IRIX maps a point on the screen into a line in 3-D world coordinates
noport IRIX specifies that a program does not need screen space
scrsubdivide IRIX subdivide lines and polygons to a screen-space limit
gldepthrange IRIX specify mapping of depth values from normalized device coordinates to window coordinates
glDepthRange Tru64 specify mapping of depth values from normalized device coordinates to window coordinates
gluunproject4 IRIX map window and clip coordinates to object coordinates
netscape IRIX the premier World Wide Web browser
gluProject Tru64 map object coordinates to window coordinates
gluUnProject Tru64 map window coordinates to object coordinates
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service