载入中...
搜索中...
未找到
TerrainCurveTexture.cpp
浏览该文件的文档.
12Result<TerrainCurveTextureReceipt> bakeTerrainCurveTexture(image::ImageData& output, const Heightmap& curve) {
16 DiagnosticCode::InvalidArgument, "terrain.curveTexture: non-empty one-row image and curve required"));
The single Squirrel projection for common Result, Status and Value.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
void setPixel(int x, int y, const Colorf &p)
Sets the pixel at location (x,y).
Definition ImageData.cpp:484
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
Definition EvpackPointGraphLoader.h:12
void exposeTerrainCurveTexture(ssq::Table &table)
Register the Pcg terrain curve texture adapter; VM-thread only.
Definition TerrainCurveTexture.cpp:37
Result< TerrainCurveTextureReceipt > bakeTerrainCurveTexture(image::ImageData &output, const Heightmap &curve)
Bake a sampled one-row curve into an existing one-row image with Pcg's exact pixel-coordinate contrac...
Definition TerrainCurveTexture.cpp:12
@ InvalidArgument
Range and write count returned by Pcg AnimationCurve texture baking.
Definition TerrainCurveTexture.h:11