rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
Rectangle specifying the destination rectangle for a rendering operation by its top left and bottom right corner coordinates. More...
#include <Ren.hpp>
Public Member Functions | |
constexpr DstRectWH | wh () const noexcept |
Convert to an equivalent rolmodl::DstRectWH. | |
![]() | |
constexpr | RectXY (const int argX, const int argY, const int argX1, const int argY1) noexcept |
Initialize with the given top left corner x and y, and the bottom right corner x and y. More... | |
constexpr | RectXY (const SDL_Rect r) noexcept |
Initialize from the given SDL_Rect converted from a width-height rectangle. | |
constexpr RectWH | wh () const noexcept |
Convert to an equivalent rolmodl::geom::RectWH. | |
constexpr SDL_Rect | sdl () const noexcept |
Convert to an SDL_Rect width-height rectangle. | |
Additional Inherited Members | |
![]() | |
int | x |
int | y |
int | x1 |
int | y1 |
Rectangle specifying the destination rectangle for a rendering operation by its top left and bottom right corner coordinates.