载入中...
搜索中...
未找到
HudGeometry.h 文件参考
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>

浏览源代码.

类

struct  eve::ui::LinearFillRect
 Pure linear fill geometry, normalized to the original image rectangle. 更多...
 
struct  eve::ui::NinePatchAxis
 One nine-patch axis, separating destination distances from source UVs. 更多...
 
struct  eve::ui::RadialFillQuad
 One normalized quad of a radial ring; inner points coincide for a solid sector. 更多...
 
struct  eve::ui::RadialFillMesh
 Allocation-free radial mesh with at most 64 segments per complete turn. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::ui
 

枚举

enum class  eve::ui::FillDirection : uint8_t { eve::ui::Right = 0 , eve::ui::Left , eve::ui::Down , eve::ui::Up }
 Direction of a linear image fill; geometry stays inside the original layout box. 更多...
 

函数

float eve::ui::hudFraction (float value)
 Clamps finite fractions; invalid presentation data produces an empty fill.
 
LinearFillRect eve::ui::linearFillRect (float fraction, FillDirection direction, bool stretch)
 Computes cropped geometry/UVs; stretch preserves the complete source UV rectangle.
 
NinePatchAxis eve::ui::ninePatchAxis (float size, float nearBorder, float farBorder, float uv0, float uv1, float textureSize, float scale)
 Scales border geometry while retaining source texel coverage; scale/textureSize must be positive.
 
RadialFillMesh eve::ui::radialFillMesh (float fraction, float startDegrees, bool clockwise, float innerRadius)
 Builds an elliptical sector/ring in [0,1] coordinates; zero degrees points right.