class
#include <bn_regular_bg_attributes.h>
regular_bg_attributes Manages the attributes to commit to the GBA register of a regular background.
Constructors, destructors, conversion operators
-
regular_bg_attributes(const regular_
bg_ & map, int priority, bool mosaic_enabled)map_ ptr - Constructor.
-
regular_bg_attributes(const regular_
bg_ & map, int priority, bool mosaic_enabled, bn::map_ ptr green_swap_mode green_swap_mode) - Constructor.
-
regular_bg_attributes(regular_
bg_ && map, int priority, bool mosaic_enabled)map_ ptr - Constructor.
-
regular_bg_attributes(regular_
bg_ && map, int priority, bool mosaic_enabled, bn::map_ ptr green_swap_mode green_swap_mode) - Constructor.
Public functions
-
auto map() const -> const regular_
bg_ &map_ ptr - Returns the regular_
bg_ of a regular background.map_ ptr -
void set_map(const regular_
bg_ & map)map_ ptr - Sets the regular_
bg_ of a regular background.map_ ptr -
void set_map(regular_
bg_ && map)map_ ptr - Sets the regular_
bg_ of a regular background.map_ ptr - auto priority() const -> int
- Returns the priority of a regular background relative to sprites and other backgrounds.
- void set_priority(int priority)
- Sets the priority of a regular background relative to sprites and other backgrounds.
- auto mosaic_enabled() const -> bool
- Indicates if the mosaic effect is applied to a regular background or not.
- void set_mosaic_enabled(bool mosaic_enabled)
- Sets if the mosaic effect must be applied to a regular background or not.
-
auto green_swap_mode() const -> bn::
green_swap_mode - Indicates how a regular background must be displayed when green swap is enabled.
-
void set_green_swap_mode(bn::
green_swap_mode green_swap_mode) - Sets how a regular background must be displayed when green swap is enabled.
Friends
-
auto operator==(const regular_
bg_ & a, const regular_attributes bg_ & b) -> bool defaultedattributes - Default equal operator.
Function documentation
bn::regular_bg_attributes:: regular_bg_attributes(const regular_bg_map_ptr & map,
int priority,
bool mosaic_enabled)
Constructor.
Parameters | |
---|---|
map | regular_ |
priority | Priority of a regular background relative to sprites and other backgrounds, in the range [0..3]. |
mosaic_enabled | Indicates if the mosaic effect is applied to a regular background or not. |
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).
bn::regular_bg_attributes:: regular_bg_attributes(const regular_bg_map_ptr & map,
int priority,
bool mosaic_enabled,
bn::green_swap_mode green_swap_mode)
Constructor.
Parameters | |
---|---|
map | regular_ |
priority | Priority of a regular background relative to sprites and other backgrounds, in the range [0..3]. |
mosaic_enabled | Indicates if the mosaic effect is applied to a regular background or not. |
green_swap_mode | Indicates how a regular background must be displayed when green swap is enabled. |
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).
bn::regular_bg_attributes:: regular_bg_attributes(regular_bg_map_ptr && map,
int priority,
bool mosaic_enabled)
Constructor.
Parameters | |
---|---|
map | regular_ |
priority | Priority of a regular background relative to sprites and other backgrounds, in the range [0..3]. |
mosaic_enabled | Indicates if the mosaic effect is applied to a regular background or not. |
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).
bn::regular_bg_attributes:: regular_bg_attributes(regular_bg_map_ptr && map,
int priority,
bool mosaic_enabled,
bn::green_swap_mode green_swap_mode)
Constructor.
Parameters | |
---|---|
map | regular_ |
priority | Priority of a regular background relative to sprites and other backgrounds, in the range [0..3]. |
mosaic_enabled | Indicates if the mosaic effect is applied to a regular background or not. |
green_swap_mode | Indicates how a regular background must be displayed when green swap is enabled. |
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).
void bn::regular_bg_attributes:: set_map(const regular_bg_map_ptr & map)
Sets the regular_
Parameters | |
---|---|
map | regular_ |
void bn::regular_bg_attributes:: set_map(regular_bg_map_ptr && map)
Sets the regular_
Parameters | |
---|---|
map | regular_ |
int bn::regular_bg_attributes:: priority() const
Returns the priority of a regular background relative to sprites and other backgrounds.
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).
void bn::regular_bg_attributes:: set_priority(int priority)
Sets the priority of a regular background relative to sprites and other backgrounds.
Parameters | |
---|---|
priority | Priority in the range [0..3]. |
Backgrounds with higher priority are drawn first (and therefore can be covered by later sprites and backgrounds).