The D3DVIEWPORT structure defines the visible 3-D volume and the 2-D screen area that a 3-D volume projects onto for the IDirect3DViewport2::GetViewport and IDirect3DViewport2::SetViewport methods.
For the IDirect3D2 and IDirect3DDevice2 interfaces, this structure has been superseded by the D3DVIEWPORT2 structure.
typedef struct _D3DVIEWPORT {
DWORD dwSize;
DWORD dwX;
DWORD dwY;
DWORD dwWidth;
DWORD dwHeight;
D3DVALUE dvScaleX;
D3DVALUE dvScaleY;
D3DVALUE dvMaxX;
D3DVALUE dvMaxY;
D3DVALUE dvMinZ;
D3DVALUE dvMaxZ;
} D3DVIEWPORT, *LPD3DVIEWPORT;
When the viewport is changed, the driver builds a new transformation matrix.
The coordinates and dimensions of the viewport are given relative to the top left of the device.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in d3dtypes.h.
D3DVALUE, IDirect3DViewport2::GetViewport, IDirect3DViewport2::SetViewport