プログレス。。。

This commit is contained in:
Robert 2021-04-17 03:15:07 +02:00
parent 19a188e059
commit fe87e22b16
14 changed files with 271 additions and 179 deletions

View file

@ -4,11 +4,24 @@
#include <osmrelation.hpp>
struct SDL_FPoint;
struct SDL_Renderer;
class Multipolygon
{
public:
Multipolygon(const std::shared_ptr<osmp::Relation>& relation, int width, int height, osmp::Bounds bounds);
void Draw(SDL_Renderer* renderer, int r, int g, int b);
private:
struct Vertex {
double x, y;
};
struct Polygon {
std::vector<Vertex> vertices;
std::vector<int> indices;
};
std::vector<Polygon> polygons;
};