bn::sprite_affine_mat_rotation_manager class

Manages the rotation angle of a sprite_affine_mat_ptr.

Public static functions

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

Function documentation

static void bn::sprite_affine_mat_rotation_manager::set(fixed rotation_angle, sprite_affine_mat_ptr& affine_mat)

Sets the rotation angle of the given sprite_affine_mat_ptr.

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