class
affine_bg_mat_attributes_hbe_ptrstd::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes which define the position and the transformation matrix of an affine_
Public static functions
-
static auto create(const affine_
bg_ & bg, const span<const affine_ptr bg_ >& attributes_ref) -> affine_mat_ attributes bg_ mat_ attributes_ hbe_ ptr - Creates an affine_
bg_ which changes the attributes which define the position and the transformation matrix of an affine_mat_ attributes_ hbe_ ptr bg_ in each screen horizontal line.ptr -
static auto create_optional(const affine_
bg_ & bg, const span<const affine_ptr bg_ >& attributes_ref) -> optional<affine_mat_ attributes bg_ >mat_ attributes_ hbe_ ptr - Creates an affine_
bg_ which changes the attributes which define the position and the transformation matrix of an affine_mat_ attributes_ hbe_ ptr bg_ in each screen horizontal line.ptr
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 bg() const -> const affine_
bg_ &ptr - Returns the affine_
bg_ modified by this H-Blank effect.ptr -
auto attributes_ref() const -> span<const affine_
bg_ >mat_ attributes - Returns the referenced array of 160 affine_
bg_ objects to set to the given affine_mat_ attributes bg_ in each screen horizontal line.ptr -
void set_attributes_ref(const span<const affine_
bg_ >& attributes_ref)mat_ attributes - Sets the reference to an array of 160 affine_
bg_ objects to set to the given affine_mat_ attributes bg_ in each screen horizontal line.ptr - void reload_attributes_ref()
- Rereads the content of the referenced attributes to set to the given affine_
bg_ in each screen horizontal line.ptr -
void swap(affine_
bg_ & other)mat_ attributes_ hbe_ ptr - Exchanges the contents of this affine_
bg_ with those of the other one.mat_ attributes_ hbe_ ptr
Friends
-
void swap(affine_
bg_ & a, affine_mat_ attributes_ hbe_ ptr bg_ & b)mat_ attributes_ hbe_ ptr - Exchanges the contents of an affine_
bg_ with those of another one.mat_ attributes_ hbe_ ptr -
auto operator==(const affine_
bg_ & a, const affine_mat_ attributes_ hbe_ ptr bg_ & b) -> boolmat_ attributes_ hbe_ ptr - Equal operator.
-
auto operator!=(const affine_
bg_ & a, const affine_mat_ attributes_ hbe_ ptr bg_ & b) -> boolmat_ attributes_ hbe_ ptr - Not equal operator.
Function documentation
static affine_bg_mat_attributes_hbe_ptr bn::affine_bg_mat_attributes_hbe_ptr:: create(const affine_bg_ptr & bg,
const span<const affine_bg_mat_attributes >& attributes_ref)
Creates an affine_
Parameters | |
---|---|
bg | affine_ |
attributes_ref | Reference to an array of 160 affine_ |
Returns | The requested affine_ |
The attributes are not copied but referenced, so they should outlive affine_
static optional<affine_bg_mat_attributes_hbe_ptr > bn::affine_bg_mat_attributes_hbe_ptr:: create_optional(const affine_bg_ptr & bg,
const span<const affine_bg_mat_attributes >& attributes_ref)
Creates an affine_
Parameters | |
---|---|
bg | affine_ |
attributes_ref | Reference to an array of 160 affine_ |
Returns | The requested affine_ |
The attributes are not copied but referenced, so they should outlive affine_
span<const affine_bg_mat_attributes > bn::affine_bg_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 affine_
void bn::affine_bg_mat_attributes_hbe_ptr:: set_attributes_ref(const span<const affine_bg_mat_attributes >& attributes_ref)
Sets the reference to an array of 160 affine_
The attributes are not copied but referenced, so they should outlive affine_
void bn::affine_bg_mat_attributes_hbe_ptr:: reload_attributes_ref()
Rereads the content of the referenced attributes to set to the given affine_
The attributes are not copied but referenced, so they should outlive affine_
void bn::affine_bg_mat_attributes_hbe_ptr:: swap(affine_bg_mat_attributes_hbe_ptr & other)
Exchanges the contents of this affine_
Parameters | |
---|---|
other | affine_ |
void swap(affine_bg_mat_attributes_hbe_ptr & a,
affine_bg_mat_attributes_hbe_ptr & b)
Exchanges the contents of an affine_
Parameters | |
---|---|
a | First affine_ |
b | Second affine_ |
bool operator==(const affine_bg_mat_attributes_hbe_ptr & a,
const affine_bg_mat_attributes_hbe_ptr & b)
Equal operator.
Parameters | |
---|---|
a | First affine_ |
b | Second affine_ |
Returns | true if the first affine_false . |
bool operator!=(const affine_bg_mat_attributes_hbe_ptr & a,
const affine_bg_mat_attributes_hbe_ptr & b)
Not equal operator.
Parameters | |
---|---|
a | First affine_ |
b | Second affine_ |
Returns | true if the first affine_false . |