rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
Rectangle specifying the source rectangle for a rendering operation by its top left corner coordinates, width, and height. More...
#include <Ren.hpp>
Public Member Functions | |
constexpr SrcRectXY | xy () const noexcept |
Convert to an equivalent rolmodl::SrcRectXY. | |
![]() | |
constexpr | RectWH (const int argX, const int argY, const int argW, const int argH) noexcept |
Initialize with the given top left corner x and y, width, and height. More... | |
constexpr | RectWH (const SDL_Rect r) noexcept |
Initialize from the given SDL_Rect . | |
constexpr RectXY | xy () const noexcept |
Convert to an equivalent rolmodl::geom::RectXY. | |
constexpr SDL_Rect | sdl () const noexcept |
Convert to an SDL_Rect . | |
Additional Inherited Members | |
![]() | |
int | x |
int | y |
int | w |
int | h |
Rectangle specifying the source rectangle for a rendering operation by its top left corner coordinates, width, and height.