rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Public Member Functions | List of all members
rolmodl::Flip Struct Reference

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.
 

Detailed Description

Rendering flip configuration container.

See also
https://wiki.libsdl.org/SDL_RendererFlip

Definition at line 74 of file Ren.hpp.


The documentation for this struct was generated from the following file: