Files
MapLibreParticleLab/include/llmr/map/map.hpp
Konstantin Käfer 654972bb3f cmake + tile loading
2014-01-13 18:07:13 +01:00

44 lines
752 B
C++

#ifndef LLMR_MAP_MAP
#define LLMR_MAP_MAP
#include "../platform/platform.hpp"
#include "../renderer/painter.hpp"
#include "transform.hpp"
namespace llmr {
class tile;
class map {
public:
map();
~map();
void setup();
void resize(uint32_t width, uint32_t height);
/* callback */
bool render();
void moveBy(double dx, double dy);
void scaleBy(double ds, double cx, double cy);
void rotateBy(double cx, double cy, double sx, double sy, double ex, double ey);
void tileLoaded(tile *tile);
void tileFailed(tile *tile);
private:
void updateTiles();
private:
transform *transform;
painter *painter;
// int32_t min_zoom;
// int32_t max_zoom;
std::vector<tile *> tiles;
};
}
#endif