remove sprite pivot

This commit is contained in:
BlackMATov
2020-04-24 21:47:11 +07:00
parent f136051589
commit cd971c269d
6 changed files with 10 additions and 50 deletions

View File

@@ -29,17 +29,14 @@ namespace e2d
sprite& assign(sprite&& other) noexcept;
sprite& assign(const sprite& other);
sprite& set_pivot(const v2f& pivot) noexcept;
sprite& set_inner_texrect(const b2f& texrect) noexcept;
sprite& set_outer_texrect(const b2f& texrect) noexcept;
sprite& set_texture(const texture_asset::ptr& texture) noexcept;
const v2f& pivot() const noexcept;
const b2f& inner_texrect() const noexcept;
const b2f& outer_texrect() const noexcept;
const texture_asset::ptr& texture() const noexcept;
private:
v2f pivot_;
b2f inner_texrect_;
b2f outer_texrect_;
texture_asset::ptr texture_;