bn::sprites_mosaic namespace

Functions related with the mosaic applied to the sprites.

Functions

auto horizontal_stretch() -> fixed
Returns the horizontal stretch of the mosaic applied to the sprites.
void set_horizontal_stretch(fixed horizontal_stretch)
Sets the horizontal stretch of the mosaic applied to the sprites.
auto vertical_stretch() -> fixed
Returns the vertical stretch of the mosaic applied to the sprites.
void set_vertical_stretch(fixed vertical_stretch)
Sets the vertical stretch of the mosaic applied to the sprites.
void set_stretch(fixed stretch)
Sets the stretch of the mosaic applied to the sprites.
void set_stretch(fixed horizontal_stretch, fixed vertical_stretch)
Sets the stretch of the mosaic applied to the sprites.

Function documentation

void bn::sprites_mosaic::set_horizontal_stretch(fixed horizontal_stretch)

Sets the horizontal stretch of the mosaic applied to the sprites.

Parameters
horizontal_stretch Horizontal stretch in the range [0..1].

void bn::sprites_mosaic::set_vertical_stretch(fixed vertical_stretch)

Sets the vertical stretch of the mosaic applied to the sprites.

Parameters
vertical_stretch Vertical stretch in the range [0..1].

void bn::sprites_mosaic::set_stretch(fixed stretch)

Sets the stretch of the mosaic applied to the sprites.

Parameters
stretch Stretch in the range [0..1].

void bn::sprites_mosaic::set_stretch(fixed horizontal_stretch, fixed vertical_stretch)

Sets the stretch of the mosaic applied to the sprites.

Parameters
horizontal_stretch Horizontal stretch in the range [0..1].
vertical_stretch Vertical stretch in the range [0..1].