Diligent Engine API Reference
Public Member Functions | Public Attributes | List of all members
Diligent::Viewport Struct Reference

Describes the viewport. More...

Public Member Functions

 Viewport (Float32 _TopLeftX=0, Float32 _TopLeftY=0, Float32 _Width=0, Float32 _Height=0, Float32 _MinDepth=0, Float32 _MaxDepth=1)
 Initializes the structure.
 

Public Attributes

Float32 TopLeftX
 X coordinate of the left boundary of the viewport.
 
Float32 TopLeftY
 Y coordinate of the top boundary of the viewport. When defining a viewport, DirectX convention is used: window coordinate systems originates in the LEFT TOP corner of the screen with Y axis pointing down.
 
Float32 Width
 Viewport width.
 
Float32 Height
 Viewport Height.
 
Float32 MinDepth
 Minimum depth of the viewport. Ranges between 0 and 1.
 
Float32 MaxDepth
 Maximum depth of the viewport. Ranges between 0 and 1.
 

Detailed Description

Describes the viewport.

This structure is used by IDeviceContext::SetViewports().