aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 19:19:21 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-26 19:19:21 +0100
commitc5d1b46ba804eaabdb4fc2f4f4295292032def65 (patch)
treeca3b6410a6f3c1b9f5291e182fd9d25e39efc08c /src/crepe/facade/SDLContext.h
parentb4c07db977ab18302a0d953ef22a32a171e688f8 (diff)
implemented all the feedback
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index 542a8bf..1a9316e 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -121,7 +121,7 @@ private:
* \param cam_pos position of the current camera in the scene
* \param cam_scale multiplier for the world to screen
*/
- void draw(const Sprite & sprite, const Transform & transform, const vec2 & cam_pos,
+ void draw(const Sprite & sprite, const Transform & transform, const Camera & cam,
const vec2 & cam_scale);
/**
@@ -135,7 +135,7 @@ private:
* \param cam_scale camera scalar for world to screen
*/
void draw_particle(const Sprite & sprite, const vec2 & pos, const double & angle,
- const vec2 & cam_pos, const double & img_scale, const vec2 & cam_scale);
+ const double & img_scale, const Camera & cam, const vec2 & cam_scale);
//! Clears the screen, preparing for a new frame.
void clear_screen();
@@ -168,8 +168,8 @@ private:
* \param scale the multiplier for world to screen
* \return sdl rectangle to draw a dst image to draw on the screen
*/
- SDL_Rect get_dst_rect(const Sprite & sprite, const vec2 & pos, const vec2 & cam_pos,
- const double & img_scale, const vec2 & scale) const;
+ SDL_Rect get_dst_rect(const Sprite & sprite, const vec2 & pos, const Camera & cam,
+ const double & img_scale, const vec2 & cam_scale) const;
private:
//! sdl Window