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;
Defines the visible 3D volume and the 2D screen area that a 3D volume projects onto for the IDirect3DViewport::GetViewport and IDirect3DViewport::SetViewport methods.
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.
Size of this structure, in bytes.
Coordinates of the top-left corner of the viewport.
Dimensions of the viewport.
Values of the D3DVALUE type describing the scaling quantities homogeneous to screen.
dvMaxX, dvMaxY, dvMinZ, and dvMaxZ
Values of the D3DVALUE type describing the maximum and minimum homogeneous coordinates of x, y, and z.