diff options
-rw-r--r-- | src/crepe/api/Animator.h | 1 | ||||
-rw-r--r-- | src/crepe/api/Camera.cpp | 2 | ||||
-rw-r--r-- | src/crepe/api/Camera.h | 3 | ||||
-rw-r--r-- | src/crepe/api/Sprite.h | 1 | ||||
-rw-r--r-- | src/crepe/facade/SDLContext.cpp | 2 | ||||
-rw-r--r-- | src/crepe/system/RenderSystem.h | 1 |
6 files changed, 6 insertions, 4 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h index 7a5ef03..19c9ebd 100644 --- a/src/crepe/api/Animator.h +++ b/src/crepe/api/Animator.h @@ -40,6 +40,7 @@ public: Animator(uint32_t id, Sprite & spritesheet, int row, int col, int col_animate); ~Animator(); // dbg_trace + private: //! A reference to the Sprite sheet containing the animation frames. Sprite & spritesheet; diff --git a/src/crepe/api/Camera.cpp b/src/crepe/api/Camera.cpp index 99a0831..0831f45 100644 --- a/src/crepe/api/Camera.cpp +++ b/src/crepe/api/Camera.cpp @@ -8,7 +8,7 @@ using namespace crepe; Camera::Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen, - const ivec2 & viewport, const double & zoom, const vec2& offset) + const ivec2 & viewport, const double & zoom, const vec2 & offset) : Component(id), bg_color(bg_color), offset(offset), diff --git a/src/crepe/api/Camera.h b/src/crepe/api/Camera.h index 8908caa..c7b2d08 100644 --- a/src/crepe/api/Camera.h +++ b/src/crepe/api/Camera.h @@ -21,7 +21,8 @@ public: * \param id Unique identifier for the camera component. * \param bg_color Background color for the camera view. */ - Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen, const ivec2 & viewport, const double & zoom, const vec2 & offset = {0,0}); + Camera(game_object_id_t id, const Color & bg_color, const ivec2 & screen, + const ivec2 & viewport, const double & zoom, const vec2 & offset = {0, 0}); ~Camera(); // dbg_trace only public: diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h index 9644e72..c406b91 100644 --- a/src/crepe/api/Sprite.h +++ b/src/crepe/api/Sprite.h @@ -77,6 +77,7 @@ public: * does it need to be calculated again in the Animator */ double aspect_ratio; + private: //! Reads the sprite_rect of sprite friend class SDLContext; diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 6c6af55..0d42a4c 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -12,10 +12,10 @@ #include <stdexcept> #include "../api/Camera.h" +#include "../api/Config.h" #include "../api/Sprite.h" #include "../api/Texture.h" #include "../api/Transform.h" -#include "../api/Config.h" #include "../util/Log.h" #include "SDLContext.h" diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h index 264dc4c..46ebb92 100644 --- a/src/crepe/system/RenderSystem.h +++ b/src/crepe/system/RenderSystem.h @@ -75,7 +75,6 @@ private: private: SDLContext & context = SDLContext::get_instance(); - }; } // namespace crepe |