diff options
| author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-20 19:30:34 +0100 | 
|---|---|---|
| committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-20 19:30:34 +0100 | 
| commit | 30492d9eee7ee47a42e2471dd0716044f59df705 (patch) | |
| tree | f5bd49566a9850f7355ee308d3f5178c5c33526a /src | |
| parent | c23c7d03522456ac580cb7acd93fbfd95d5b846d (diff) | |
make format
Diffstat (limited to 'src')
| -rw-r--r-- | src/crepe/Component.h | 8 | ||||
| -rw-r--r-- | src/crepe/facade/SDLContext.cpp | 3 | ||||
| -rw-r--r-- | src/crepe/facade/SDLContext.h | 4 | ||||
| -rw-r--r-- | src/crepe/system/RenderSystem.h | 4 | 
4 files changed, 9 insertions, 10 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h index 6d405c7..dc17721 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -27,10 +27,10 @@ protected:  	//! Only the ComponentManager can create components  	friend class ComponentManager; -  Component(const Component &) = delete; -  Component(Component &&) = delete; -  virtual Component & operator=(const Component &) = delete; -  virtual Component & operator=(Component &&) = delete; +	Component(const Component &) = delete; +	Component(Component &&) = delete; +	virtual Component & operator=(const Component &) = delete; +	virtual Component & operator=(Component &&) = delete;  public:  	virtual ~Component() = default; diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index f78ec8f..26a1bdc 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -135,8 +135,7 @@ void SDLContext::draw_particle(const Sprite & sprite, const Vector2 & pos,  					 &dstrect, angle, NULL, render_flip);  } -void SDLContext::draw(const Sprite & sprite, const Transform & transform, -					  const Camera & cam) { +void SDLContext::draw(const Sprite & sprite, const Transform & transform, const Camera & cam) {  	SDL_RendererFlip render_flip  		= (SDL_RendererFlip) ((SDL_FLIP_HORIZONTAL * sprite.flip.flip_x) diff --git a/src/crepe/facade/SDLContext.h b/src/crepe/facade/SDLContext.h index 3b17c0b..841ffc9 100644 --- a/src/crepe/facade/SDLContext.h +++ b/src/crepe/facade/SDLContext.h @@ -118,10 +118,10 @@ private:  	 * \param transform Reference to the Transform for positioning.  	 * \param camera Reference to the Camera for view adjustments.  	 */ -	void draw(const Sprite & sprite, const Transform & transform, const Camera & camera) ; +	void draw(const Sprite & sprite, const Transform & transform, const Camera & camera);  	void draw_particle(const Sprite & sprite, const Vector2 & pos, const double & angle, -					   const double & scale, const Camera & camera) ; +					   const double & scale, const Camera & camera);  	//! Clears the screen, preparing for a new frame.  	void clear_screen(); diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h index 5a2af17..d25a6e3 100644 --- a/src/crepe/system/RenderSystem.h +++ b/src/crepe/system/RenderSystem.h @@ -31,10 +31,10 @@ public:  private:  	//! Clears the screen in preparation for rendering. -	void clear_screen() ; +	void clear_screen();  	//! Presents the rendered frame to the display. -	void present_screen() ; +	void present_screen();  	//! Updates the active camera used for rendering.  	void update_camera();  |