载入中...
搜索中...
未找到
SkyProceduralAsset.cpp
浏览该文件的文档.
36std::byte channel(float x) { return std::byte(static_cast<unsigned char>(std::clamp(x, 0.f, 1.f) * 255.f + .5f)); }
69 constexpr uint32_t longitude = 96, latitude = 48, cloudSize = 512, starSize = 1024, moonSize = 256;
162 return Result<SkyWispsAsset>::failure(Diagnostic::error(DiagnosticCode::Failed, e.what(), "sky.procedural-v1"));
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
Immutable owned sky mesh and textures, loaded from a pack or generated procedurally.
Definition SkyWispsAsset.h:15
static Result< SkyWispsAsset > generate(uint32_t seed)
Generate a complete independent sky using a named procedural-v1 seed.
Definition SkyProceduralAsset.cpp:64
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
constexpr HexDirection next(HexDirection d) noexcept
The next direction clockwise (NW wraps to NE).
Definition HexMetrics.h:76
@ Failed
static TextureSampler linearMipmap()
Trilinear (linear + linear mips). Caller should create the texture with generateMipmaps.
Definition TextureSampler.h:60