class
sprite_affine_second_attributesManages the attributes to commit to the second GBA register of an affine sprite (with an attached sprite_
Constructors, destructors, conversion operators
-
sprite_affine_second_attributes(fixed x,
const sprite_
affine_ mat_ ptr& affine_mat) - Constructor.
-
sprite_affine_second_attributes(fixed x,
sprite_
affine_ mat_ ptr&& affine_mat) - Constructor.
Public functions
- auto x() const -> fixed
- Returns the horizontal position of a sprite (relative to its camera, if it has one).
- void set_x(fixed x)
- Sets the horizontal position of a sprite (relative to its camera, if it has one).
-
auto affine_mat() const -> const sprite_
affine_ mat_ ptr& - Returns the sprite_
affine_ mat_ ptr attached to a sprite. -
void set_affine_mat(const sprite_
affine_ mat_ ptr& affine_mat) - Sets the sprite_
affine_ mat_ ptr attached to a sprite. -
void set_affine_mat(sprite_
affine_ mat_ ptr&& affine_mat) - Sets the sprite_
affine_ mat_ ptr attached to a sprite.
Friends
-
auto operator==(const sprite_
affine_ second_ attributes& a, const sprite_ affine_ second_ attributes& b) -> bool defaulted - Default equal operator.
Function documentation
bn:: sprite_affine_second_attributes:: sprite_affine_second_attributes(fixed x,
const sprite_ affine_ mat_ ptr& affine_mat)
Constructor.
Parameters | |
---|---|
x | Horizontal position of a sprite (relative to its camera, if it has one). |
affine_mat | Reference to the sprite_ |
bn:: sprite_affine_second_attributes:: sprite_affine_second_attributes(fixed x,
sprite_ affine_ mat_ ptr&& affine_mat)
Constructor.
Parameters | |
---|---|
x | Horizontal position of a sprite (relative to its camera, if it has one). |
affine_mat | Moved reference to the sprite_ |
void bn:: sprite_affine_second_attributes:: set_affine_mat(const sprite_ affine_ mat_ ptr& affine_mat)
Sets the sprite_
Parameters | |
---|---|
affine_mat | sprite_ |
void bn:: sprite_affine_second_attributes:: set_affine_mat(sprite_ affine_ mat_ ptr&& affine_mat)
Sets the sprite_
Parameters | |
---|---|
affine_mat | sprite_ |