class
#include <bn_regular_bg_attributes_hbe_ptr.h>
regular_bg_attributes_hbe_ptr std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes to commit to the GBA register of a regular background in each screen horizontal line.
Base classes
- class hbe_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect.
Public static functions
-
static auto create(regular_
bg_ ptr bg, const span<const regular_ bg_ attributes>& attributes_ref) -> regular_ bg_ attributes_ hbe_ ptr - Creates a regular_
bg_ attributes_ hbe_ ptr which changes the attributes to commit to the GBA register of a regular background in each screen horizontal line. -
static auto create_optional(regular_
bg_ ptr bg, const span<const regular_ bg_ attributes>& attributes_ref) -> optional<regular_ bg_ attributes_ hbe_ ptr> - Creates a regular_
bg_ attributes_ hbe_ ptr which changes the attributes to commit to the GBA register of a regular background in each screen horizontal line.
Public functions
-
auto bg() const -> const regular_
bg_ ptr& - Returns the regular background modified by this H-Blank effect.
-
auto attributes_ref() const -> span<const regular_
bg_ attributes> - Returns the referenced array of 160 regular_
bg_ attributes objects with the attributes to commit to the GBA register of the managed regular background in each screen horizontal line. -
void set_attributes_ref(const span<const regular_
bg_ attributes>& attributes_ref) - Sets the reference to an array of 160 regular_
bg_ attributes objects with the attributes to commit to the GBA register of the managed regular background in each screen horizontal line. - void reload_attributes_ref()
- Rereads the content of the referenced attributes to the GBA register of the managed regular background in each screen horizontal line.
-
void swap(regular_
bg_ attributes_ hbe_ ptr& other) - Exchanges the contents of this regular_
bg_ attributes_ hbe_ ptr with those of the other one.
Friends
-
void swap(regular_
bg_ attributes_ hbe_ ptr& a, regular_ bg_ attributes_ hbe_ ptr& b) - Exchanges the contents of a regular_
bg_ attributes_ hbe_ ptr with those of another one.
Function documentation
static regular_ bg_ attributes_ hbe_ ptr bn:: regular_bg_attributes_hbe_ptr:: create(regular_ bg_ ptr bg,
const span<const regular_ bg_ attributes>& attributes_ref)
Creates a regular_
Parameters | |
---|---|
bg | Regular background to be modified. |
attributes_ref | Reference to an array of 160 regular_ |
Returns | The requested regular_ |
The attributes are not copied but referenced, so they should outlive the regular_
static optional<regular_ bg_ attributes_ hbe_ ptr> bn:: regular_bg_attributes_hbe_ptr:: create_optional(regular_ bg_ ptr bg,
const span<const regular_ bg_ attributes>& attributes_ref)
Creates a regular_
Parameters | |
---|---|
bg | Regular background to be modified. |
attributes_ref | Reference to an array of 160 regular_ |
Returns | The requested regular_ |
The attributes are not copied but referenced, so they should outlive the regular_
span<const regular_ bg_ attributes> bn:: regular_bg_attributes_hbe_ptr:: attributes_ref() const
Returns the referenced array of 160 regular_
The attributes are not copied but referenced, so they should outlive the regular_
void bn:: regular_bg_attributes_hbe_ptr:: set_attributes_ref(const span<const regular_ bg_ attributes>& attributes_ref)
Sets the reference to an array of 160 regular_
The attributes are not copied but referenced, so they should outlive the regular_
void bn:: regular_bg_attributes_hbe_ptr:: reload_attributes_ref()
Rereads the content of the referenced attributes to the GBA register of the managed regular background in each screen horizontal line.
The attributes are not copied but referenced, so they should outlive the regular_
void bn:: regular_bg_attributes_hbe_ptr:: swap(regular_ bg_ attributes_ hbe_ ptr& other)
Exchanges the contents of this regular_
Parameters | |
---|---|
other | regular_ |
void swap(regular_ bg_ attributes_ hbe_ ptr& a,
regular_ bg_ attributes_ hbe_ ptr& b)
Exchanges the contents of a regular_
Parameters | |
---|---|
a | First regular_ |
b | Second regular_ |