aboutsummaryrefslogtreecommitdiff
path: root/mwe/resource-manager/tiledMap.h
blob: dc31705172a85752f3241cba469fb39078a10bb5 (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
#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;
};