bn::sprite_palette_rotate_manager class

Manages the number of colors to rotate to the right in a sprite_palette_ptr.

Public static functions

static auto get(const sprite_palette_ptr& palette) -> int
Returns the number of colors to rotate to the right in the given sprite_palette_ptr.
static void set(int count, sprite_palette_ptr& palette)
Sets the number of colors to rotate to the right in the given sprite_palette_ptr.

Function documentation

static void bn::sprite_palette_rotate_manager::set(int count, sprite_palette_ptr& palette)

Sets the number of colors to rotate to the right in the given sprite_palette_ptr.

Parameters
count Number of colors to rotate to the right in the range [1 - rotate_range_size() .. rotate_range_size() - 1].
palette sprite_palette_ptr to modify.