diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-08 15:43:45 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-08 15:43:45 +0200 |
commit | afdd12277a43d3ad7755f028e85c569dece84f0b (patch) | |
tree | 1b619bbd2c95cb676c53f2410a94dd16b5fb54fe /src/crepe/api/spritesheet.cpp | |
parent | 035444c1b7ee2e76c235e16eafd6115e849eec73 (diff) |
rendering system
Diffstat (limited to 'src/crepe/api/spritesheet.cpp')
-rw-r--r-- | src/crepe/api/spritesheet.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/crepe/api/spritesheet.cpp b/src/crepe/api/spritesheet.cpp index 93a2b65..7f5da38 100644 --- a/src/crepe/api/spritesheet.cpp +++ b/src/crepe/api/spritesheet.cpp @@ -30,12 +30,6 @@ void Spritesheet::select_sprite(const int x, const int y){ m_clip.y = y * m_clip.h; } -void Spritesheet::draw_selected_sprite(const int x, const int y){ - auto& ctx = SdlContext::get_instance(); - SDL_Rect tmp = { x, y, m_clip.w, m_clip.h}; - SDL_RenderCopy(ctx.m_game_renderer, this->m_spritesheet, &this->m_clip, &tmp); -} - void Spritesheet::load(std::unique_ptr<api::Resource> res, const int row, const int col){ auto& ctx = SdlContext::get_instance(); |