bn::blending_fade_alpha class

Manages the attributes to commit to the GBA fade blending register.

Constructors, destructors, conversion operators

blending_fade_alpha() defaulted constexpr
Default constructor.
blending_fade_alpha(fixed value) explicit constexpr
Constructor.

Public functions

auto value() const -> fixed constexpr
Returns the weight of the fade blending, with 0 being disabled and 1 being fully applied.
void set_value(fixed value) constexpr
Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.

Friends

auto operator==(const blending_fade_alpha& a, const blending_fade_alpha& b) -> bool defaulted constexpr
Default equal operator.

Function documentation

bn::blending_fade_alpha::blending_fade_alpha(fixed value) explicit constexpr

Constructor.

Parameters
value Fade weight in the range [0..1], with 0 being disabled and 1 being fully applied.

void bn::blending_fade_alpha::set_value(fixed value) constexpr

Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.

Parameters
value Fade weight in the range [0..1].