プログレス。。。
This commit is contained in:
parent
19a188e059
commit
fe87e22b16
14 changed files with 271 additions and 179 deletions
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue