bn::blending_transparency_alpha_loop_action class

Modifies the weight of the transparency 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_transparency_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_transparency_alpha_loop_action(int duration_updates, fixed final_transparency_alpha)
Constructor.

Public functions

auto final_transparency_alpha() const -> fixed
When the weight of the transparency blending is equal to this parameter, it goes back to its initial state and vice versa.

Function documentation

bn::blending_transparency_alpha_loop_action::blending_transparency_alpha_loop_action(int duration_updates, fixed final_transparency_alpha)

Constructor.

Parameters
duration_updates How many times the action has to be updated before changing the direction of the weight delta.
final_transparency_alpha When the weight of the transparency 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 transparency and fade blendings can't be enabled at the same time.