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_ ptr& map, int priority, bool mosaic_enabled) - Constructor.
-
regular_bg_attributes(regular_
bg_ map_ ptr&& map, int priority, bool mosaic_enabled) - Constructor.
Public functions
-
auto map() const -> const regular_
bg_ map_ ptr& - Returns the regular_
bg_ map_ ptr of a regular background. -
void set_map(const regular_
bg_ map_ ptr& map) - Sets the regular_
bg_ map_ ptr of a regular background. -
void set_map(regular_
bg_ map_ ptr&& map) - Sets the regular_
bg_ map_ ptr of a regular background. - 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.
Friends
-
auto operator==(const regular_
bg_ attributes& a, const regular_ bg_ attributes& b) -> bool defaulted - 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(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).
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).