blending namespace
#include <bn_blending.h>
Blending related functions.
Enums
- enum class fade_color_type: uint8_t { BLACK, WHITE }
- Available fade colors.
Functions
- auto transparency_alpha() -> fixed
- Returns the weight of the transparency blending, with 0 being fully transparent and 1 being fully visible.
- void set_transparency_alpha(fixed transparency_alpha)
- Sets the weight of the transparency blending, with 0 being fully transparent and 1 being fully visible.
- auto intensity_alpha() -> fixed
- Returns the weight of the intensity blending, with 0 being disabled and 1 being fully applied.
- void set_intensity_alpha(fixed intensity_alpha)
- Sets the weight of the intensity blending, with 0 being disabled and 1 being fully applied.
-
auto transparency_attributes() -> blending_
transparency_ attributes - Returns the attributes to commit to the GBA transparency and intensity blending register.
-
void set_transparency_attributes(blending_
transparency_ attributes transparency_attributes) - Sets the attributes to commit to the GBA transparency and intensity blending register.
-
auto fade_color() -> fade_
color_ type - Returns the color used for fade blending.
-
void set_fade_color(fade_
color_ type fade_color) - Sets the color used for fade blending.
- auto fade_alpha() -> fixed
- Returns the weight of the fade blending, with 0 being disabled and 1 being fully applied.
- void set_fade_alpha(fixed fade_alpha)
- Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.
-
void set_fade_alpha(blending_
fade_ alpha fade_alpha) - Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.
Enum documentation
enum class bn:: blending:: fade_color_type: uint8_t
Available fade colors.
| Enumerators | |
|---|---|
| BLACK |
Black fade color. |
| WHITE |
White fade color. |
Function documentation
void bn:: blending:: set_transparency_alpha(fixed transparency_alpha)
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]. |
Keep in mind that transparency and fade blendings can't be enabled at the same time.
void bn:: blending:: set_intensity_alpha(fixed intensity_alpha)
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]. |
Keep in mind that intensity and fade blendings can't be enabled at the same time.
void bn:: blending:: set_fade_alpha(fixed fade_alpha)
Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.
| Parameters | |
|---|---|
| fade_alpha | Fade weight in the range [0..1]. |
Keep in mind that fade blending and other blendings can't be enabled at the same time.
void bn:: blending:: set_fade_alpha(blending_ fade_ alpha fade_alpha)
Sets the weight of the fade blending, with 0 being disabled and 1 being fully applied.
| Parameters | |
|---|---|
| fade_alpha | blending_ |
Keep in mind that fade blending and other blendings can't be enabled at the same time.