载入中...
搜索中...
未找到
HeightmapTarget.cpp
浏览该文件的文档.
15bool HeightmapTarget::containsCell(int x, int y) const { return heightmap_ && heightmap_->inBounds(x, y); }
46 const int maxX = std::min(heightmap->getWidth() - 1, static_cast<int>(std::ceil(centerX + radius)));
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.h:81
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
float sampleBilinear(float x, float y) const
Bilinear height at continuous coordinate within [0, w) x [0, h).
Definition Heightmap.cpp:37
HeightmapTarget(std::string id, procgen::Heightmap *heightmap)
Bind a live heightmap which must outlive this adapter.
Definition HeightmapTarget.cpp:11
editing::FieldWriteStatus writeScalar(int x, int y, float value) override
Writes scalar.
Definition HeightmapTarget.cpp:19
@ Unchanged
@ Rejected
Definition HeightmapBrush.h:9
EVENGINE_API_ORCHESTRATION editing::Result< int > applyHeightmapBrush(procgen::Heightmap *heightmap, float centerX, float centerY, float radius, float strength)
Apply the legacy circular brush through the procgen authoring satellite.
Definition HeightmapTarget.cpp:36
std::unique_ptr< HeightmapTarget > createHeightmapTarget(std::string id, procgen::Heightmap *heightmap)
Create a heightmap adapter.
Definition HeightmapTarget.cpp:31
Definition Container.h:602