aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/spritesheet.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 16:31:22 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-09-25 16:31:22 +0200
commit9ab843567b27bd23eb7e0d2d4a48b78f7df93595 (patch)
tree5f580dfe75a2cf3148cdd3a9ff2b0b0930340ada /resource-manager/spritesheet.cpp
parent35224c07549448e919a18a463e5dec81bbabf7c6 (diff)
testing map implementation
Diffstat (limited to 'resource-manager/spritesheet.cpp')
-rw-r--r--resource-manager/spritesheet.cpp1
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;
}