aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 10:21:22 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-28 10:21:22 +0100
commitca81cf4cdb99cfe42359526ff3840f58f4cf214a (patch)
treea0e7b53a39ed9ceba1b8dca20d5dee7a89c52520 /src/crepe/facade/SDLContext.h
parent7508f7b26e73df24e2fcb4296b31d26470fddf76 (diff)
make format
Diffstat (limited to 'src/crepe/facade/SDLContext.h')
-rw-r--r--src/crepe/facade/SDLContext.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h
index 25f2818..5f141be 100644
--- a/src/crepe/facade/SDLContext.h
+++ b/src/crepe/facade/SDLContext.h
@@ -16,14 +16,13 @@
namespace crepe {
-struct RenderCtx{
+struct RenderCtx {
const Sprite & sprite;
const Camera & cam;
const vec2 & cam_pos;
const vec2 & pos;
const double & angle;
const double & scale;
-
};
// TODO: SDL_Keycode is defined in a header not distributed with crepe, which means this
@@ -39,8 +38,6 @@ typedef SDL_Keycode CREPE_KEYCODES;
*/
class SDLContext {
-
-
public:
/**
* \brief Gets the singleton instance of SDLContext.
@@ -161,8 +158,8 @@ private:
* \param img_scale the image multiplier for increasing img size
* \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 Camera & cam, const vec2 & cam_pos,
- const double & img_scale) const;
+ SDL_Rect get_dst_rect(const Sprite & sprite, const vec2 & pos, const Camera & cam,
+ const vec2 & cam_pos, const double & img_scale) const;
private:
//! sdl Window