aboutsummaryrefslogtreecommitdiff
path: root/mwe/resource-manager/TextureMap.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 21:54:28 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-23 21:54:28 +0200
commit9b7be419c9dcc6ebd1e504713c7b2676ca3d2fdf (patch)
tree97a2fc5ce1ec1345bd6f44889682ea9a2ffafd76 /mwe/resource-manager/TextureMap.h
parent080ad535e6fc6666b919b1a21b6986aaf9b678eb (diff)
`clang-format`
Diffstat (limited to 'mwe/resource-manager/TextureMap.h')
-rw-r--r--mwe/resource-manager/TextureMap.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/mwe/resource-manager/TextureMap.h b/mwe/resource-manager/TextureMap.h
index dc8b8d3..04b12a2 100644
--- a/mwe/resource-manager/TextureMap.h
+++ b/mwe/resource-manager/TextureMap.h
@@ -1,28 +1,26 @@
#pragma once
-
#include <SDL_rect.h>
#include <SDL_render.h>
#include <string>
-class TextureMap final
-{
+class TextureMap final {
public:
- TextureMap();
- ~TextureMap();
+ TextureMap();
+ ~TextureMap();
- TextureMap(const TextureMap&) = delete;
- TextureMap(TextureMap&&) = delete;
+ TextureMap(const TextureMap &) = delete;
+ TextureMap(TextureMap &&) = delete;
- TextureMap& operator = (const TextureMap&) = delete;
- TextureMap& operator = (TextureMap&&) = delete;
+ TextureMap & operator=(const TextureMap &) = delete;
+ TextureMap & operator=(TextureMap &&) = delete;
- bool loadFromFile(const std::string&, SDL_Renderer*);
- SDL_Point getSize() const { return m_size; }
+ bool loadFromFile(const std::string &, SDL_Renderer *);
+ SDL_Point getSize() const { return m_size; }
- operator SDL_Texture* () { return m_texture; }
+ operator SDL_Texture *() { return m_texture; }
private:
- SDL_Texture* m_texture;
- SDL_Point m_size;
+ SDL_Texture * m_texture;
+ SDL_Point m_size;
};