aboutsummaryrefslogtreecommitdiff
path: root/mwe/resource-manager/tiledMap.h
blob: be5b6a6aebace5f9e2f9d35c877aef565b1baa5c (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
#include "TextureMap.h"
#include "map_layer.h"
#include <string>
#include <tmxlite/Map.hpp>
#include <vector>

class TiledMap {

public:
	TiledMap(const std::string&);
	~TiledMap();

	void SetRenderer(SDL_Renderer&);
	void draw() const;


private:
	void SetMapTextures();
	void SetMapLayers();


private:
	tmx::Map m_TmxMap;
	std::vector<TextureMap*> m_MapTextures;
	std::vector<MapLayer*> m_RenderLayers;

	SDL_Renderer* m_Renderer;


};