class
blending_transparency_attributesManages 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_top_weight, fixed transparency_bottom_weight) constexpr
- Constructor.
Public functions
- auto transparency_top_weight() const -> fixed constexpr
- Returns the weight of the transparency blending for the top layer, with 0 being fully transparent and 1 being fully visible.
- void set_transparency_top_weight(fixed transparency_top_weight) constexpr
- Sets the weight of the transparency blending for the top layer, with 0 being fully transparent and 1 being fully visible.
- auto transparency_bottom_weight() const -> fixed constexpr
- Returns the weight of the transparency blending for the bottom layer, with 0 being fully transparent and 1 being fully visible.
- void set_transparency_bottom_weight(fixed transparency_bottom_weight) constexpr
- Sets the weight of the transparency blending for the bottom layer, 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.
- void set_intensity_alpha(fixed intensity_alpha) constexpr
- Sets the weight of the intensity blending, with 0 being disabled and 1 being fully applied.
- void set_transparency_and_intensity_alphas(fixed transparency_alpha, fixed intensity_alpha) constexpr
- Sets the weights of the transparency and the the intensity blendings.
Friends
-
auto operator==(const blending_
transparency_ attributes& a, const blending_ transparency_ attributes& b) -> bool defaulted constexpr - Default equal operator.
Function documentation
bn:: blending_transparency_attributes:: blending_transparency_attributes(fixed transparency_top_weight,
fixed transparency_bottom_weight) constexpr
Constructor.
Parameters | |
---|---|
transparency_top_weight | Transparency weight in the range [0..1] for the top layer, with 0 being fully transparent and 1 being fully visible. |
transparency_bottom_weight | Transparency weight in the range [0..1] for the bottom layer, with 0 being fully transparent and 1 being fully visible. |
void bn:: blending_transparency_attributes:: set_transparency_top_weight(fixed transparency_top_weight) constexpr
Sets the weight of the transparency blending for the top layer, with 0 being fully transparent and 1 being fully visible.
Parameters | |
---|---|
transparency_top_weight | Transparency weight in the range [0..1]. |
void bn:: blending_transparency_attributes:: set_transparency_bottom_weight(fixed transparency_bottom_weight) constexpr
Sets the weight of the transparency blending for the bottom layer, with 0 being fully transparent and 1 being fully visible.
Parameters | |
---|---|
transparency_bottom_weight | Transparency weight in the range [0..1]. |
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]. |
void bn:: blending_transparency_attributes:: set_transparency_and_intensity_alphas(fixed transparency_alpha,
fixed intensity_alpha) constexpr
Sets the weights of the transparency and the the intensity blendings.
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. |