bn::sprite_rotation_manager class

Manages the rotation angle of a sprite_ptr.

Public static functions

static auto get(const sprite_ptr& sprite) -> fixed
Returns the rotation angle of the given sprite_ptr.
static void set(fixed rotation_angle, sprite_ptr& sprite)
Sets the rotation angle of the given sprite_ptr.

Function documentation

static void bn::sprite_rotation_manager::set(fixed rotation_angle, sprite_ptr& sprite)

Sets the rotation angle of the given sprite_ptr.

Parameters
rotation_angle Rotation angle in degrees, in the range [0..360].
sprite sprite_ptr to modify.