Diligent Engine API Reference: Diligent::Rect Struct Reference

Diligent Engine API Reference

Public Member Functions | Public Attributes | List of all members
Diligent::Rect Struct Reference

Describes the rectangle. More...

## Public Member Functions
| Rect (Int32 _left=0, Int32 _top=0, Int32 _right=0, Int32 _bottom=0)
| Initializes the structure.

## Public Attributes
Int32 | left
| X coordinate of the left boundary of the viewport.
Int32 | top
| Y coordinate of the top boundary of the viewport.
Int32 | right
| X coordinate of the right boundary of the viewport.
Int32 | bottom
| Y coordinate of the bottom boundary of the viewport.

## Detailed Description

Describes the rectangle.

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

Remarks
  When defining a viewport, Windows convention is used: window coordinate systems originates in the LEFT TOP corner of the screen with Y axis pointing down.