rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
|
Rendering flip configuration container. More...
#include <Ren.hpp>
Public Member Functions | |
constexpr | Flip () noexcept |
Create a configuration corresponding to no flipping. The SDL flag equivalent is SDL_FLIP_NONE . | |
constexpr Flip | isHorizontal () const noexcept |
Test whether this configuration has horizontal flipping enabled. The SDL flag equivalent is SDL_FLIP_HORIZONTAL . | |
constexpr Flip | isVertical () const noexcept |
Test whether this configuration has vertical flipping enabled. The SDL flag equivalent is SDL_FLIP_VERTICAL . | |
constexpr Flip | withHorizontal () const noexcept |
Create a version of this configuration that has horizontal flipping enabled. The SDL flag equivalent is SDL_FLIP_HORIZONTAL . | |
constexpr Flip | withVertical () const noexcept |
Create a version of this configuration that has vertical flipping enabled. The SDL flag equivalent is SDL_FLIP_VERTICAL . | |
constexpr Flip | withoutHorizontal () const noexcept |
Create a version of this configuration that does not have horizontal flipping enabled. The SDL flag equivalent is ~SDL_FLIP_HORIZONTAL . | |
constexpr Flip | withoutVertical () const noexcept |
Create a version of this configuration that does not have vertical flipping enabled. The SDL flag equivalent is ~SDL_FLIP_VERTICAL . | |
constexpr SDL_RendererFlip | toSDLEnum () const noexcept |
Return the underlying bitfield representation of this configuration as the SDL enum type SDL_RendererFlip . | |
constexpr uint32_t | raw () const noexcept |
Return the underlying bitfield representation of this configuration. | |
Rendering flip configuration container.