class
#include <bn_bgs_mosaic_actions.h>
bgs_mosaic_horizontal_stretch_loop_action Modifies the horizontal stretch of the mosaic applied to the backgrounds from a minimum to a maximum. When the horizontal stretch 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, bgs_mosaic_horizontal_stretch_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
- bgs_mosaic_horizontal_stretch_loop_action(int duration_updates, fixed final_horizontal_stretch)
- Constructor.
Public functions
- auto final_horizontal_stretch() const -> fixed
- When the horizontal stretch is equal to the returned parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: bgs_mosaic_horizontal_stretch_loop_action:: bgs_mosaic_horizontal_stretch_loop_action(int duration_updates,
fixed final_horizontal_stretch)
Constructor.
Parameters | |
---|---|
duration_updates | How many times the action has to be updated before changing the direction of the horizontal stretch delta. |
final_horizontal_stretch | When the horizontal stretch is equal to this parameter, it goes back to its initial state and vice versa. |
This horizontal stretch must be in the range [0..1].