Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mapw2(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mapw2(3G)  —  Silicon Graphics

NAME

mapw2 − maps a point on the screen into 2-D world coordinates

SPECIFICATION

C
mapw2(vobj, sx, sy, wx, wy)
Object vobj;
Screencord sx, sy;
Coord *wx, *wy;

FORTRAN
subroutine mapw2(vobj, sx, sy, wx, wy)
integer*4 vobj, sx, sy
real wx, wy

Pascal
procedure mapw2(vobj: Object; sx sy: longint;
var wx, wy: Coord);

DESCRIPTION

mapw2 is the 2-D version of mapw.  vobj is a viewing object containing the viewport, projection, viewing, and modeling transformations that define world space. sx and sy define a point in screen coordinates.  wx and wy return the corresponding world coordinates.  If the transformation is not 2D, the result is undefined. 

SEE ALSO

mapw Programming Guide, Section 9.1, Mapping Screen Coordinates to World Coordinates

NOTE

This routine is available only in immediate mode. 

Version 3.6  —  December 20, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026