Add the frame width/height to SpriteTexture. Closes #13
This commit is contained in:
parent
ea92dcc3c4
commit
19682fd0bc
4 changed files with 39 additions and 12 deletions
|
@ -12,6 +12,7 @@ namespace textures {
|
|||
struct SpriteTexture {
|
||||
std::shared_ptr<sf::Sprite> sprite = nullptr;
|
||||
std::shared_ptr<sf::Texture> texture = nullptr;
|
||||
sf::Vector2i frame_size;
|
||||
};
|
||||
|
||||
struct TextureManager {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue