Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D10_VIEWPORT structure

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

Header

D3D10.h

See also

Core Structures

 

 

Show:
© 2017 Microsoft