diff options
Diffstat (limited to 'mwe/resource-manager/TextureMap.h')
-rw-r--r-- | mwe/resource-manager/TextureMap.h | 26 |
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; }; |