diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-25 16:31:22 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-25 16:31:22 +0200 |
commit | 9ab843567b27bd23eb7e0d2d4a48b78f7df93595 (patch) | |
tree | 5f580dfe75a2cf3148cdd3a9ff2b0b0930340ada /resource-manager/spritesheet.cpp | |
parent | 35224c07549448e919a18a463e5dec81bbabf7c6 (diff) |
testing map implementation
Diffstat (limited to 'resource-manager/spritesheet.cpp')
-rw-r--r-- | resource-manager/spritesheet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/resource-manager/spritesheet.cpp b/resource-manager/spritesheet.cpp index c0e4d06..b6ff60e 100644 --- a/resource-manager/spritesheet.cpp +++ b/resource-manager/spritesheet.cpp @@ -16,6 +16,7 @@ SpriteSheet::SpriteSheet(const std::string& path){ } void SpriteSheet::set_spritesheet_data(SDL_Renderer& renderer, const int row, const int column){ + m_spritesheet->setTexture(renderer); m_clip.w = m_spritesheet->getSurface()->w / column; m_clip.h = m_spritesheet->getSurface()->h / row; } |