Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::Rect Struct Reference

Describes the rectangle. More...

#include <DeviceContext.h>

Public Member Functions

constexpr Rect (Int32 _left, Int32 _top, Int32 _right, Int32 _bottom) noexcept
 Initializes the structure.
 

Public Attributes

Int32 left = 0
 X coordinate of the left boundary of the viewport.
 
Int32 top = 0
 Y coordinate of the top boundary of the viewport.
 
Int32 right = 0
 X coordinate of the right boundary of the viewport.
 
Int32 bottom = 0
 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.