DdSetViewport(3D) — Stardent Computer Inc. (\*(Dd)
NAME
DdSetViewport − Define a device viewport for a device
SYNOPSIS
C:
void DdSetViewport(device, viewport)
DtObject device;
DtVolume ∗viewport;
Fortran:
CALL DDSDV(DEVICE, VWPORT)
INTEGER∗4 DEVICE
REAL∗8 VWPORT(6)
DESCRIPTION
DdSetViewport specifies the device viewport for the indicated device, device. The device viewport specifies the portion of the device’s extent onto which the frame boundary is mapped (i.e. the portion of the device’s view surface to be used for display). The default viewport uses all of the current device volume. If the device extent changes (for example, if an X-window is resized), then the default viewport automatically changes to fit the new device extent, unless the device is specified as a non-auto-resizing device (see DoDevice).
ERRORS
DdSetViewport will fail if the device handle is invalid.
[WARNING - invalid device handle]
SEE ALSO
DdInqExtent(3D), DdInqViewport(3D), DoDevice(3D)
September 29, 2021