class
sprite_affine_mat_attributes_hbe_ptrstd::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes of a sprite_
Public static functions
-
static auto create(const sprite_
affine_ mat_ ptr& affine_mat, const span<const affine_ mat_ attributes>& attributes_ref) -> sprite_ affine_ mat_ attributes_ hbe_ ptr - Creates a sprite_
affine_ mat_ attributes_ hbe_ ptr which changes the attributes of a sprite_ affine_ mat_ ptr in each screen horizontal line. -
static auto create_optional(const sprite_
affine_ mat_ ptr& affine_mat, const span<const affine_ mat_ attributes>& attributes_ref) -> optional<sprite_ affine_ mat_ attributes_ hbe_ ptr> - Creates a sprite_
affine_ mat_ attributes_ hbe_ ptr which changes the attributes of a sprite_ affine_ mat_ ptr in each screen horizontal line.
Public functions
- auto id() const -> int
- Returns the internal id.
- auto visible() const -> bool
- Indicates if this H-Blank effect must be committed to the GBA or not.
- void set_visible(bool visible)
- Sets if this H-Blank effect must be committed to the GBA or not.
-
auto affine_mat() const -> const sprite_
affine_ mat_ ptr& - Returns the sprite_
affine_ mat_ ptr modified by this H-Blank effect. -
auto attributes_ref() const -> span<const affine_
mat_ attributes> - Returns the referenced array of 160 affine_
mat_ attributes objects to set to the given sprite_ affine_ mat_ ptr in each screen horizontal line. -
void set_attributes_ref(const span<const affine_
mat_ attributes>& attributes_ref) - Sets the reference to an array of 160 affine_
mat_ attributes objects to set to the given sprite_ affine_ mat_ ptr in each screen horizontal line. - void reload_attributes_ref()
- Rereads the content of the referenced attributes to set to the given sprite_
affine_ mat_ ptr in each screen horizontal line. -
void swap(sprite_
affine_ mat_ attributes_ hbe_ ptr& other) - Exchanges the contents of this sprite_
affine_ mat_ attributes_ hbe_ ptr with those of the other one.
Friends
-
void swap(sprite_
affine_ mat_ attributes_ hbe_ ptr& a, sprite_ affine_ mat_ attributes_ hbe_ ptr& b) - Exchanges the contents of a sprite_
affine_ mat_ attributes_ hbe_ ptr with those of another one. -
auto operator==(const sprite_
affine_ mat_ attributes_ hbe_ ptr& a, const sprite_ affine_ mat_ attributes_ hbe_ ptr& b) -> bool - Equal operator.
-
auto operator!=(const sprite_
affine_ mat_ attributes_ hbe_ ptr& a, const sprite_ affine_ mat_ attributes_ hbe_ ptr& b) -> bool - Not equal operator.
Function documentation
static sprite_ affine_ mat_ attributes_ hbe_ ptr bn:: sprite_affine_mat_attributes_hbe_ptr:: create(const sprite_ affine_ mat_ ptr& affine_mat,
const span<const affine_ mat_ attributes>& attributes_ref)
Creates a sprite_
Parameters | |
---|---|
affine_mat | sprite_ |
attributes_ref | Reference to an array of 160 affine_ |
Returns | The requested sprite_ |
The attributes are not copied but referenced, so they should outlive sprite_
static optional<sprite_ affine_ mat_ attributes_ hbe_ ptr> bn:: sprite_affine_mat_attributes_hbe_ptr:: create_optional(const sprite_ affine_ mat_ ptr& affine_mat,
const span<const affine_ mat_ attributes>& attributes_ref)
Creates a sprite_
Parameters | |
---|---|
affine_mat | sprite_ |
attributes_ref | Reference to an array of 160 affine_ |
Returns | The requested sprite_ |
The attributes are not copied but referenced, so they should outlive sprite_
span<const affine_ mat_ attributes> bn:: sprite_affine_mat_attributes_hbe_ptr:: attributes_ref() const
Returns the referenced array of 160 affine_
The attributes are not copied but referenced, so they should outlive sprite_
void bn:: sprite_affine_mat_attributes_hbe_ptr:: set_attributes_ref(const span<const affine_ mat_ attributes>& attributes_ref)
Sets the reference to an array of 160 affine_
The attributes are not copied but referenced, so they should outlive sprite_
void bn:: sprite_affine_mat_attributes_hbe_ptr:: reload_attributes_ref()
Rereads the content of the referenced attributes to set to the given sprite_
The attributes are not copied but referenced, so they should outlive sprite_
void bn:: sprite_affine_mat_attributes_hbe_ptr:: swap(sprite_ affine_ mat_ attributes_ hbe_ ptr& other)
Exchanges the contents of this sprite_
Parameters | |
---|---|
other | sprite_ |
void swap(sprite_ affine_ mat_ attributes_ hbe_ ptr& a,
sprite_ affine_ mat_ attributes_ hbe_ ptr& b)
Exchanges the contents of a sprite_
Parameters | |
---|---|
a | First sprite_ |
b | Second sprite_ |
bool operator==(const sprite_ affine_ mat_ attributes_ hbe_ ptr& a,
const sprite_ affine_ mat_ attributes_ hbe_ ptr& b)
Equal operator.
Parameters | |
---|---|
a | First sprite_ |
b | Second sprite_ |
Returns | true if the first sprite_false . |
bool operator!=(const sprite_ affine_ mat_ attributes_ hbe_ ptr& a,
const sprite_ affine_ mat_ attributes_ hbe_ ptr& b)
Not equal operator.
Parameters | |
---|---|
a | First sprite_ |
b | Second sprite_ |
Returns | true if the first sprite_false . |