23 lines
434 B
C++
23 lines
434 B
C++
module;
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
export module views:MapView;
|
|
import std;
|
|
|
|
export namespace ee_engine {
|
|
struct MapMesh {
|
|
struct Province {
|
|
std::vector<glm::vec2> vertices;
|
|
std::vector<std::uint16_t> indices;
|
|
};
|
|
|
|
std::unordered_map<std::uint32_t, std::vector<Province>> regions;
|
|
};
|
|
|
|
struct ProvinceSSBO {
|
|
std::uint32_t regionId;
|
|
std::uint32_t color;
|
|
};
|
|
}
|