bn::sprite_blending_manager class

Manages if blending must be applied to a sprite_ptr or not.

Contents

Public static functions

static auto get(const sprite_ptr& sprite) -> bool
Indicates if blending is applied to the given sprite_ptr or not.
static void set(bool blending_enabled, sprite_ptr& sprite)
Sets if blending must be applied to the given sprite_ptr or not.

Function documentation

static void bn::sprite_blending_manager::set(bool blending_enabled, sprite_ptr& sprite)

Sets if blending must be applied to the given sprite_ptr or not.

Keep in mind that blending and window attributes can't be enabled on a sprite_ptr at the same time.