aboutsummaryrefslogtreecommitdiff
path: root/resource-manager/map_asset.h
blob: 39cb8f42ac1d5f8be881dab9bb2820c572a216d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once


#include "TextureMap.h"
#include "map_layer.h"
#include "resource.h"
#include <string>
#include <tmxlite/Map.hpp>
#include <vector>


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<TextureMap*> m_MapTextures;
	std::vector<MapLayer*> m_RenderLayers;

	SDL_Renderer* m_Renderer;


};