class
#include <bn_blending_fade_alpha_hbe_ptr.h>
blending_fade_alpha_hbe_ptr std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the weight of the fade blending in each screen horizontal line.
Keep in mind that fade blending and other blendings can't be enabled at the same time.
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(const span<const blending_
fade_ alpha>& alphas_ref) -> blending_ fade_ alpha_ hbe_ ptr - Creates a blending_
fade_ alpha_ hbe_ ptr which changes the weight of the fade blending in each screen horizontal line. -
static auto create_optional(const span<const blending_
fade_ alpha>& alphas_ref) -> optional<blending_ fade_ alpha_ hbe_ ptr> - Creates a blending_
fade_ alpha_ hbe_ ptr which changes the weight of the fade blending in each screen horizontal line.
Public functions
-
auto alphas_ref() const -> span<const blending_
fade_ alpha> - Returns the referenced array of 160 blending_
fade_ alpha objects which indicate the weight of the fade blending in each screen horizontal line. -
void set_alphas_ref(const span<const blending_
fade_ alpha>& alphas_ref) - Sets the reference to an array of 160 blending_
fade_ alpha objects which indicate the weight of the fade blending in each screen horizontal line. - void reload_alphas_ref()
- Rereads the content of the referenced blending_
fade_ alpha objects which indicate the weight of the fade blending in each screen horizontal line. -
void swap(blending_
fade_ alpha_ hbe_ ptr& other) - Exchanges the contents of this blending_
fade_ alpha_ hbe_ ptr with those of the other one.
Friends
-
void swap(blending_
fade_ alpha_ hbe_ ptr& a, blending_ fade_ alpha_ hbe_ ptr& b) - Exchanges the contents of a blending_
fade_ alpha_ hbe_ ptr with those of another one.
Function documentation
static blending_ fade_ alpha_ hbe_ ptr bn:: blending_fade_alpha_hbe_ptr:: create(const span<const blending_ fade_ alpha>& alphas_ref)
Creates a blending_
Parameters | |
---|---|
alphas_ref | Reference to an array of 160 blending_ |
Returns | The requested blending_ |
The alphas are not copied but referenced, so they should outlive the blending_
static optional<blending_ fade_ alpha_ hbe_ ptr> bn:: blending_fade_alpha_hbe_ptr:: create_optional(const span<const blending_ fade_ alpha>& alphas_ref)
Creates a blending_
Parameters | |
---|---|
alphas_ref | Reference to an array of 160 blending_ |
Returns | The requested blending_ |
The alphas are not copied but referenced, so they should outlive the blending_
span<const blending_ fade_ alpha> bn:: blending_fade_alpha_hbe_ptr:: alphas_ref() const
Returns the referenced array of 160 blending_
The alphas are not copied but referenced, so they should outlive the blending_
void bn:: blending_fade_alpha_hbe_ptr:: set_alphas_ref(const span<const blending_ fade_ alpha>& alphas_ref)
Sets the reference to an array of 160 blending_
The alphas are not copied but referenced, so they should outlive the blending_
void bn:: blending_fade_alpha_hbe_ptr:: reload_alphas_ref()
Rereads the content of the referenced blending_
The alphas are not copied but referenced, so they should outlive the blending_
void bn:: blending_fade_alpha_hbe_ptr:: swap(blending_ fade_ alpha_ hbe_ ptr& other)
Exchanges the contents of this blending_
Parameters | |
---|---|
other | blending_ |
void swap(blending_ fade_ alpha_ hbe_ ptr& a,
blending_ fade_ alpha_ hbe_ ptr& b)
Exchanges the contents of a blending_
Parameters | |
---|---|
a | First blending_ |
b | Second blending_ |