Implement Sprite class

This commit is contained in:
Lexi / Zoe 2025-11-30 00:37:44 +01:00
parent d4c91450d9
commit bb9d108102
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 132 additions and 56 deletions

View file

@ -35,6 +35,21 @@ export namespace sdl
assert(raw_texture_);
return raw_texture_.get();
}
constexpr int get_width() const
{
return raw_texture_->w;
}
constexpr int get_height() const
{
return raw_texture_->h;
}
constexpr FRect get_boundaries() const
{
return {0, 0, static_cast<float>(raw_texture_->w), static_cast<float>(raw_texture_->h)};
}
};
/**