bn::blending_transparency_attributes class

Manages the attributes to commit to the GBA transparency and intensity blendings register.

Constructors, destructors, conversion operators

blending_transparency_attributes() defaulted constexpr
Default constructor.
blending_transparency_attributes(fixed transparency_alpha, fixed intensity_alpha) constexpr
Constructor.

Public functions

auto transparency_alpha() const -> fixed constexpr
Returns the weight of the transparency blending, with 0 being fully transparent and 1 being fully visible.
void set_transparency_alpha(fixed transparency_alpha) constexpr
Sets the weight of the transparency blending, with 0 being fully transparent and 1 being fully visible.
auto intensity_alpha() const -> fixed constexpr
Returns the weight of the intensity blending, with 0 being disabled and 1 being fully applied.
void set_intensity_alpha(fixed intensity_alpha) constexpr
Sets the weight of the intensity blending, with 0 being disabled and 1 being fully applied.

Friends

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

Function documentation

bn::blending_transparency_attributes::blending_transparency_attributes(fixed transparency_alpha, fixed intensity_alpha) constexpr

Constructor.

Parameters
transparency_alpha Transparency weight in the range [0..1], with 0 being fully transparent and 1 being fully visible.
intensity_alpha Intensity weight in the range [0..1], with 0 being disabled and 1 being fully applied.

void bn::blending_transparency_attributes::set_transparency_alpha(fixed transparency_alpha) constexpr

Sets the weight of the transparency blending, with 0 being fully transparent and 1 being fully visible.

Parameters
transparency_alpha Transparency weight in the range [0..1].

void bn::blending_transparency_attributes::set_intensity_alpha(fixed intensity_alpha) constexpr

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

Parameters
intensity_alpha Intensity weight in the range [0..1].