diff options
Diffstat (limited to 'src/systems')
| -rw-r--r-- | src/systems/animating.cpp | 3 | ||||
| -rw-r--r-- | src/systems/animating.h | 2 | ||||
| -rw-r--r-- | src/systems/mapping.cpp | 12 |
3 files changed, 13 insertions, 4 deletions
| diff --git a/src/systems/animating.cpp b/src/systems/animating.cpp index 91fe925..22224c9 100644 --- a/src/systems/animating.cpp +++ b/src/systems/animating.cpp | |||
| @@ -51,8 +51,9 @@ void AnimatingSystem::render(Texture& texture) | |||
| 51 | transform.getH()}; | 51 | transform.getH()}; |
| 52 | 52 | ||
| 53 | const AnimationSet& aset = sprite.getAnimationSet(); | 53 | const AnimationSet& aset = sprite.getAnimationSet(); |
| 54 | texture.blit( | 54 | game_.getRenderer().blit( |
| 55 | aset.getTexture(), | 55 | aset.getTexture(), |
| 56 | texture, | ||
| 56 | aset.getFrameRect(sprite.getFrame()), | 57 | aset.getFrameRect(sprite.getFrame()), |
| 57 | dstrect); | 58 | dstrect); |
| 58 | } | 59 | } |
| diff --git a/src/systems/animating.h b/src/systems/animating.h index d6a89a5..548bff1 100644 --- a/src/systems/animating.h +++ b/src/systems/animating.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include "system.h" | 4 | #include "system.h" |
| 5 | #include <string> | 5 | #include <string> |
| 6 | #include "renderer.h" | 6 | #include "renderer/texture.h" |
| 7 | 7 | ||
| 8 | class AnimatingSystem : public System { | 8 | class AnimatingSystem : public System { |
| 9 | public: | 9 | public: |
| diff --git a/src/systems/mapping.cpp b/src/systems/mapping.cpp index 5b63ded..120a27a 100644 --- a/src/systems/mapping.cpp +++ b/src/systems/mapping.cpp | |||
| @@ -48,7 +48,11 @@ void MappingSystem::render(Texture& texture) | |||
| 48 | TILE_WIDTH, | 48 | TILE_WIDTH, |
| 49 | TILE_HEIGHT}; | 49 | TILE_HEIGHT}; |
| 50 | 50 | ||
| 51 | texture.blit(mappable.getTileset(), std::move(src), std::move(dst)); | 51 | game_.getRenderer().blit( |
| 52 | mappable.getTileset(), | ||
| 53 | texture, | ||
| 54 | std::move(src), | ||
| 55 | std::move(dst)); | ||
| 52 | } | 56 | } |
| 53 | } | 57 | } |
| 54 | 58 | ||
| @@ -67,7 +71,11 @@ void MappingSystem::render(Texture& texture) | |||
| 67 | TILE_WIDTH, | 71 | TILE_WIDTH, |
| 68 | TILE_HEIGHT}; | 72 | TILE_HEIGHT}; |
| 69 | 73 | ||
| 70 | texture.blit(mappable.getFont(), std::move(src), std::move(dst)); | 74 | game_.getRenderer().blit( |
| 75 | mappable.getFont(), | ||
| 76 | texture, | ||
| 77 | std::move(src), | ||
| 78 | std::move(dst)); | ||
| 71 | } | 79 | } |
| 72 | } | 80 | } |
| 73 | } | 81 | } |
