class
#include <bn_sprites_mosaic_actions.h>
sprites_mosaic_vertical_stretch_toggle_action Changes the vertical stretch of the mosaic applied to the sprites when the action is updated a given number of times.
Base classes
-
template<typename Property, class PropertyManager>class toggle_template_action<fixed, sprites_mosaic_vertical_stretch_manager>
- Changes the property when the action is updated a given number of times.
Constructors, destructors, conversion operators
- sprites_mosaic_vertical_stretch_toggle_action(int duration_updates, fixed new_vertical_stretch)
- Constructor.
Public functions
- auto new_vertical_stretch() const -> fixed
- Returns the vertical stretch to set when the action is updated the given number of times.
Function documentation
bn:: sprites_mosaic_vertical_stretch_toggle_action:: sprites_mosaic_vertical_stretch_toggle_action(int duration_updates,
fixed new_vertical_stretch)
Constructor.
Parameters | |
---|---|
duration_updates | How much times the action has to be updated to change the vertical stretch. |
new_vertical_stretch | New vertical stretch to set when the action is updated duration_updates times. |
This vertical stretch must be in the range [0..1].