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

  man pages->IRIX man pages -> standard/viewport (3)              


viewport(3G)							  viewport(3G)

NAME    [Toc]    [Back]

     viewport -	allocates a rectangular	area of	the window for an image

C SPECIFICATION    [Toc]    [Back]

     void viewport(Screencoord left, Screencoord right,	Screencoord bottom, Screencoord	top)

PARAMETERS    [Toc]    [Back]

     left     is the x coordinate of the viewport left side.

     right    is the x coordinate of the viewport right	side.

     bottom   is the y coordinate of the viewport bottom.

     top      is the y coordinate of the viewport top.

DESCRIPTION    [Toc]    [Back]

     viewport specifies, in pixels, the	area of	the window that	displays an
     image.  The viewport locations are	specified relative to the lower-left
     corner of the window. Specifying the viewport is the first	step in
     mapping world coordinates to screen coordinates.  The portion of world
     space that	window,	ortho, or perspective describes	is mapped into the
     viewport.	left, right, bottom, and top coordinates define	a rectangular
     area on the screen.

     When the system is	not in feedback	mode the rectangular area is
     restricted	as follows.  The valid range for left, and right is
     -getgdesc(GD_XPMAX) to 2*getgdesc(GD_XPMAX).  The valid range for bottom,
     and top is	-getgdesc(GD_YPMAX) to 2*getgdesc(GD_YPMAX).  The maximum
     width and height is 2K.

     viewport also loads the screenmask.

SEE ALSO    [Toc]    [Back]

     scrmask, getviewport, popviewport,	pushviewport

NOTE    [Toc]    [Back]

     On	the Personal Iris, if left is greater than right or bottom is greater
     than top, the screen displays a reflected image.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
rectf IRIX fills a rectangular area
MrmOpenHierarchyFromBuffer HP-UX Allocates a hierarchy ID and opens a buffer containing a memory image of a UID file
ilbuffer IRIX allocates framebuffer space to hold temporary image processing results
xwd IRIX dump an image of an X window
xwd HP-UX dump an image of an X window
xwd Tru64 dump an image of an X window
bgpaste IRIX paste an image onto the root window
xearth Tru64 displays a shaded image of the Earth in the root window
rect IRIX outlines a rectangular region
scrmask IRIX defines a rectangular screen clipping mask
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service