Platform SDK: DirectX

Viewports and Clipping

This section discusses the last stage of the geometry pipeline: clipping. The discussion is organized into the following topics.

Direct3D implements clipping by way of a set of viewport parameters set in the device.

[C++]

The IDirect3DDevice7 interface exposes methods that enable C++ applications to manipulate the viewport parameters for a device. (In previous releases of DirectX, viewports were implemented as a separate COM object that exposed its own interface.)

[Visual Basic]

The Direct3DDevice7 class offers methods that enable applications written in Visual Basic to manipulate the viewport parameters for a device.