class
#include <bn_blending_actions.h>
blending_fade_alpha_loop_action Modifies the weight of the fade blending from a minimum to a maximum. When the weight is equal to the given final state, it goes back to its initial state and vice versa.
Base classes
-
template<typename Property, class PropertyManager>class loop_template_action<fixed, blending_fade_alpha_manager>
- Modifies the property by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
Constructors, destructors, conversion operators
- blending_fade_alpha_loop_action(int duration_updates, fixed final_fade_alpha)
- Constructor.
Public functions
- auto final_fade_alpha() const -> fixed
- When the weight of the fade blending is equal to this parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: blending_fade_alpha_loop_action:: blending_fade_alpha_loop_action(int duration_updates,
fixed final_fade_alpha)
Constructor.
Parameters | |
---|---|
duration_updates | How much times the action has to be updated before changing the direction of the weight delta. |
final_fade_alpha | When the weight of the fade blending is equal to this parameter, it goes back to its initial state and vice versa. |
This weight must be in the range [0..1].
Keep in mind that fade blending and other blendings can't be enabled at the same time.