From 9ab843567b27bd23eb7e0d2d4a48b78f7df93595 Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Wed, 25 Sep 2024 16:31:22 +0200 Subject: testing map implementation --- resource-manager/map_asset.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 resource-manager/map_asset.h (limited to 'resource-manager/map_asset.h') diff --git a/resource-manager/map_asset.h b/resource-manager/map_asset.h new file mode 100644 index 0000000..39cb8f4 --- /dev/null +++ b/resource-manager/map_asset.h @@ -0,0 +1,35 @@ +#pragma once + + +#include "TextureMap.h" +#include "map_layer.h" +#include "resource.h" +#include +#include +#include + + +class Map : public Resource { + +public: + Map(const std::string& path); + ~Map(); + + void SetRenderer(SDL_Renderer&); + void draw() const; + + +private: + void SetMapTextures(); + void SetMapLayers(); + + +private: + tmx::Map m_Map; + std::vector m_MapTextures; + std::vector m_RenderLayers; + + SDL_Renderer* m_Renderer; + + +}; -- cgit v1.2.3