bn::sprite_regular_second_attributes class

Manages the attributes to commit to the second GBA register of a regular sprite (without an attached sprite_affine_mat_ptr).

Constructors, destructors, conversion operators

sprite_regular_second_attributes() defaulted constexpr
Default constructor.
sprite_regular_second_attributes(fixed x, bool horizontal_flip, bool vertical_flip) constexpr
Constructor.

Public functions

auto x() const -> fixed constexpr
Returns the horizontal position of a sprite (relative to its camera, if it has one).
void set_x(fixed x) constexpr
Sets the horizontal position of a sprite (relative to its camera, if it has one).
auto horizontal_flip() const -> bool constexpr
Indicates if the sprite is flipped in the horizontal axis or not.
void set_horizontal_flip(bool horizontal_flip) constexpr
Sets if the sprite is flipped in the horizontal axis or not.
auto vertical_flip() const -> bool constexpr
Indicates if the sprite is flipped in the vertical axis or not.
void set_vertical_flip(bool vertical_flip) constexpr
Sets if the sprite is flipped in the vertical axis or not.

Friends

auto operator==(const sprite_regular_second_attributes& a, const sprite_regular_second_attributes& b) -> bool defaulted constexpr
Default equal operator.

Function documentation

bn::sprite_regular_second_attributes::sprite_regular_second_attributes(fixed x, bool horizontal_flip, bool vertical_flip) constexpr

Constructor.

Parameters
x Horizontal position of a sprite (relative to its camera, if it has one).
horizontal_flip Indicates if the sprite is flipped in the horizontal axis or not.
vertical_flip Indicates if the sprite is flipped in the vertical axis or not.