#pragma once #include "TextureMap.h" #include #include class MapLayer final{ public: explicit MapLayer(); ~MapLayer(); bool create(const tmx::Map&, std::uint32_t index, const std::vector& textures); void draw(SDL_Renderer*) const; private: struct subset final { std::vector vertexData; SDL_Texture* texture = nullptr; }; std::vector m_subsets; };