载入中...
搜索中...
未找到
PrimitiveTypes.cpp
浏览该文件的文档.
13std::uint32_t resolveRadialSegments(const RadialTessellation& tessellation, float projectedRadiusPixels) {
14 const bool validError = std::isfinite(tessellation.maxScreenErrorPixels) && tessellation.maxScreenErrorPixels > 0.f;
17 const bool validCustom = tessellation.customSegments >= 3 && tessellation.customSegments <= 4096;
30 const float cosine = glm::clamp(1.f - tessellation.maxScreenErrorPixels / projectedRadiusPixels, -1.f, 1.f);
67 EV_PARAM_CHECK(validFarPlane, "scene primitive far plane must be finite and greater than near plane");
EVEngine assertion entry point, backed by zeroerr.
#define EV_PARAM_CHECK(cond,...)
Validate a function parameter / public API precondition.
Definition Assert.h:30
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
std::uint32_t resolveRadialSegments(const RadialTessellation &tessellation, float projectedRadiusPixels)
Resolves a radial tessellation policy to a validated segment count.
Definition PrimitiveTypes.cpp:13
void validate() const
Validates finite positive intervals and an even interval count.
Definition PrimitiveTypes.cpp:36
Quality and screen-error policy used by circles and curved spatial primitives.
Definition PrimitiveTypes.h:37
std::uint32_t customSegments
Definition PrimitiveTypes.h:40
float maxScreenErrorPixels
Definition PrimitiveTypes.h:39