mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
added ability to use atlas with premultiplied alpha
This commit is contained in:
@@ -42,7 +42,7 @@ namespace e2d
|
||||
spine_model& assign(spine_model&& other) noexcept;
|
||||
spine_model& assign(const spine_model& other);
|
||||
|
||||
spine_model& set_atlas(atlas_ptr atlas);
|
||||
spine_model& set_atlas(atlas_ptr atlas, bool premultiplied_alpha);
|
||||
spine_model& set_skeleton(skeleton_data_ptr skeleton);
|
||||
|
||||
spine_model& set_default_mix(secf duration);
|
||||
@@ -54,10 +54,12 @@ namespace e2d
|
||||
const atlas_ptr& atlas() const noexcept;
|
||||
const skeleton_data_ptr& skeleton() const noexcept;
|
||||
const animation_data_ptr& animation() const noexcept;
|
||||
bool premultiplied_alpha() const noexcept;
|
||||
private:
|
||||
atlas_ptr atlas_;
|
||||
skeleton_data_ptr skeleton_;
|
||||
animation_data_ptr animation_;
|
||||
bool premultiplied_alpha_ = false;
|
||||
};
|
||||
|
||||
void swap(spine_model& l, spine_model& r) noexcept;
|
||||
|
||||
Reference in New Issue
Block a user