载入中...
搜索中...
未找到
HexFeatures.h
浏览该文件的文档.
61[[nodiscard]] EVENGINE_API_WORLD float featureThreshold(std::int32_t level, std::int32_t index) noexcept;
87EVENGINE_API_WORLD void buildWallMesh(const HexMap& map, std::int32_t chunkIndex, HexMeshData& out);
105EVENGINE_API_WORLD void buildFeatureMesh(const HexMap& map, std::int32_t chunkIndex, HexMeshData& out);
Editable hex cell grid: topology, queries, picking and authoring.
CPU vertex/index container shared by the hex surface builders.
Pointy-top hex metrics, directions and vertex helpers.
Deterministic replacement for the reference project's hash grid.
Definition HexFeatures.h:35
HexHashGrid(std::uint32_t seed=0u) noexcept
Creates a hash field for seed.
Definition HexFeatures.h:46
CPU-side triangle soup for one hex chunk surface.
Definition HexMeshData.h:24
Definition HexCell.h:9
void buildFeatureMesh(const HexMap &map, std::int32_t chunkIndex, HexMeshData &out)
Builds the urban, farm, plant and special decorations of one chunk.
Definition HexFeatures.cpp:644
constexpr float kWallTowerThreshold
Height of a city/farm wall, matching HexMetrics::kWallHeight.
Definition HexFeatures.h:67
float featureThreshold(std::int32_t level, std::int32_t index) noexcept
Feature-placement thresholds of the reference project.
Definition HexFeatures.cpp:616
constexpr float kBridgeDesignLength
Edge length the reference bridge model is designed for.
Definition HexFeatures.h:69
void buildWallMesh(const HexMap &map, std::int32_t chunkIndex, HexMeshData &out)
Builds the wall and bridge geometry of one chunk.
Definition HexFeatures.cpp:632
constexpr std::int32_t kFeatureThresholdCount
Number of threshold entries per feature level.
Definition HexFeatures.h:64
Five-component pseudo-random value used to pick and orient one feature.
Definition HexFeatures.h:16
Minimal 3-component float vector used by the hex mesh builders.
Definition HexMetrics.h:18