- Rename states -> regions - Threads unregistering from Logger - Remove unnecessary references for primitive arguments in functions - Marking classes as final for optimization - Remove typo in Materials implementation file name - Move some modules to partitions
27 lines
498 B
C++
27 lines
498 B
C++
module;
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
#include <cstdint>
|
|
|
|
export module views:MapView;
|
|
|
|
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;
|
|
};
|
|
} |