aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 19:27:30 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 19:27:30 +0100
commitc23c7d03522456ac580cb7acd93fbfd95d5b846d (patch)
treedd552c8d0a979f366148cc7e2a48d666a4621556 /src/crepe/facade/SDLContext.cpp
parent72c0ee97c24202bece3c11a64016bf0f4ce23341 (diff)
fixed compile warning and tested the prerequisite that user needs to set explicity and reference
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index daf0050..f78ec8f 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -122,7 +122,7 @@ SDL_Rect SDLContext::get_dst_rect(const Sprite & sprite, const Vector2 & pos,
void SDLContext::draw_particle(const Sprite & sprite, const Vector2 & pos,
const double & angle, const double & scale,
- const Camera & camera) const {
+ const Camera & camera) {
SDL_RendererFlip render_flip
= (SDL_RendererFlip) ((SDL_FLIP_HORIZONTAL * sprite.flip.flip_x)
@@ -136,7 +136,7 @@ void SDLContext::draw_particle(const Sprite & sprite, const Vector2 & pos,
}
void SDLContext::draw(const Sprite & sprite, const Transform & transform,
- const Camera & cam) const {
+ const Camera & cam) {
SDL_RendererFlip render_flip
= (SDL_RendererFlip) ((SDL_FLIP_HORIZONTAL * sprite.flip.flip_x)