diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-19 14:07:52 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-19 14:07:52 +0100 |
commit | 26c6d4ade7e6748fe65d3ba8d9d267053d3cba2a (patch) | |
tree | 96f69cb00eee4237384469ac0bf62c43d192ff8c /src/crepe/system/RenderSystem.cpp | |
parent | accec60f4e0150989a04afa14fca56fcca7658ac (diff) |
adjusted tm naming --> transform and adjusted doxygen comments
Diffstat (limited to 'src/crepe/system/RenderSystem.cpp')
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index e311604..e8339c3 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -99,7 +99,7 @@ void RenderSystem::render_text() { } } -bool RenderSystem::render_particle(const Sprite & sprite, const Transform & tm) { +bool RenderSystem::render_particle(const Sprite & sprite, const Transform & transform) { ComponentManager & mgr = this->mediator.component_manager; SDLContext & ctx = this->mediator.sdl_context; ResourceManager & resource_manager = this->mediator.resource_manager; @@ -123,14 +123,14 @@ bool RenderSystem::render_particle(const Sprite & sprite, const Transform & tm) .sprite = sprite, .texture = res, .pos = p.position, - .angle = p.angle + tm.rotation, - .scale = tm.scale, + .angle = p.angle + transform.rotation, + .scale = transform.scale, }); } } return rendering_particles; } -void RenderSystem::render_normal(const Sprite & sprite, const Transform & tm) { +void RenderSystem::render_normal(const Sprite & sprite, const Transform & transform) { SDLContext & ctx = this->mediator.sdl_context; ResourceManager & resource_manager = this->mediator.resource_manager; const Texture & res = resource_manager.get<Texture>(sprite.source); @@ -138,9 +138,9 @@ void RenderSystem::render_normal(const Sprite & sprite, const Transform & tm) { ctx.draw(SDLContext::RenderContext{ .sprite = sprite, .texture = res, - .pos = tm.position, - .angle = tm.rotation, - .scale = tm.scale, + .pos = transform.position, + .angle = transform.rotation, + .scale = transform.scale, }); } |