sandbox
Loading...
Searching...
No Matches
sbx::graphics::viewport Class Reference

Public Types

enum class  type : std::uint8_t { fixed = utility::bit_v<0> , window = utility::bit_v<1> , dynamic = utility::bit_v<2> , all = fixed | window | dynamic }
 

Public Member Functions

auto scale () const noexcept -> const math::vector2f &
 
auto set_scale (const math::vector2f &scale) noexcept -> void
 
auto offset () const noexcept -> const math::vector2i &
 
auto set_offset (const math::vector2i &offset) noexcept -> void
 
auto size () const noexcept -> const std::optional< math::vector2u > &
 
auto set_size (const math::vector2u &size) noexcept -> void
 
auto is_fixed () const noexcept -> bool
 
auto is_window () const noexcept -> bool
 
auto is_dynamic () const noexcept -> bool
 
auto is_type (const type flags) const noexcept -> bool
 

Static Public Member Functions

static auto fixed (const math::vector2u &size) -> viewport
 
static auto fixed (const std::uint32_t width, const std::uint32_t height) -> viewport
 
static auto window () -> viewport
 
static auto dynamic () -> viewport
 

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