|
utility 2026.2.0
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
Axis-aligned scissor (clip) rectangle. More...
#include <headers/utility/graphic/scissor.hpp>
Public Member Functions | |
| bool | operator== (const ScissorRect &other) const |
| Equality operator. | |
| bool | operator!= (const ScissorRect &other) const |
| Inequality operator. | |
Public Attributes | |
| float | x { 0.0f } |
| Rectangle origin along X, in pixels. | |
| float | y { 0.0f } |
| Rectangle origin along Y, in pixels. | |
| float | width { 0.0f } |
| Rectangle width, in pixels. | |
| float | height { 0.0f } |
| Rectangle height, in pixels. | |
Axis-aligned scissor (clip) rectangle.
Coordinates are expressed in framebuffer pixels, with the origin at the top-left corner of the render target. Engines are expected to clamp the rectangle to their render target extent.
Definition at line 35 of file scissor.hpp.
|
inline |
Inequality operator.
| other | The other rectangle to compare with. |
Definition at line 57 of file scissor.hpp.
|
inline |
Equality operator.
| other | The other rectangle to compare with. |
Definition at line 46 of file scissor.hpp.
| float utility::graphic::ScissorRect::height { 0.0f } |
Rectangle height, in pixels.
Definition at line 39 of file scissor.hpp.
| float utility::graphic::ScissorRect::width { 0.0f } |
Rectangle width, in pixels.
Definition at line 38 of file scissor.hpp.
| float utility::graphic::ScissorRect::x { 0.0f } |
Rectangle origin along X, in pixels.
Definition at line 36 of file scissor.hpp.
| float utility::graphic::ScissorRect::y { 0.0f } |
Rectangle origin along Y, in pixels.
Definition at line 37 of file scissor.hpp.