Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

D3D10_VIEWPORT structure (d3d10.h)

Defines the dimensions of a viewport.

Syntax

typedef struct D3D10_VIEWPORT {
 INT TopLeftX;
 INT TopLeftY;
 UINT Width;
 UINT Height;
 FLOAT MinDepth;
 FLOAT MaxDepth;
} D3D10_VIEWPORT;

Members

TopLeftX

Type: INT

X position of the left hand side of the viewport. Ranges between D3D10_VIEWPORT_BOUNDS_MIN and D3D10_VIEWPORT_BOUNDS_MAX.

TopLeftY

Type: INT

Y position of the top of the viewport. Ranges between D3D10_VIEWPORT_BOUNDS_MIN and D3D10_VIEWPORT_BOUNDS_MAX.

Width

Type: UINT

Width of the viewport.

Height

Type: UINT

Height of the viewport.

MinDepth

Type: FLOAT

Minimum depth of the viewport. Ranges between 0 and 1.

MaxDepth

Type: FLOAT

Maximum depth of the viewport. Ranges between 0 and 1.

Remarks

In all cases, Width and Height must be ≥ 0 and TopLeftX + Width and TopLeftY + Height must be ≤ D3D10_VIEWPORT_BOUNDS_MAX.

Requirements

Requirement Value
Header d3d10.h

See also

Core Structures


Feedback

Was this page helpful?

Additional resources