载入中...
搜索中...
未找到
ParticleTrack.h
浏览该文件的文档.
45 [[nodiscard]] bool isSameAsset(const ParticleTrack& other) const noexcept { return data_ == other.data_; }
50 [[nodiscard]] static Result<ParticleTrack> prepare(float duration, std::vector<ParticleTrajectory> trajectories,
67 [[nodiscard]] static Result<ParticleTrack> loadForRecipe(std::string_view path, const BakeRecipe& expected);
74 [[nodiscard]] Result<std::size_t> sample(float seconds, std::span<BakedParticleSample> output) const;
Strong identity values shared by persistence, content and logical-name APIs.
Move-only, checked operation results for the common layer.
Bounded provenance builder for explicit-coordinate baked recordings. @ownership Owns names and conten...
Definition BakeRecipe.h:21
Immutable particle trajectories independent of live simulation, ECS and graphics resources....
Definition ParticleTrack.h:42
bool isSameAsset(const ParticleTrack &other) const noexcept
Whether both views share the same frozen asset; constant-time identity query.
Definition ParticleTrack.h:45
Definition Container.h:602
Owning planar sprite presentation; pixels, unwrapped degrees, linear RGBA and normalized UV.
Definition ParticleTrack.h:13
Owning visible sample retaining the two-part stable identity.
Definition ParticleTrack.h:33
std::uint64_t birthSerial
Definition ParticleTrack.h:35
Explicit event/sample time and owning presentation value.
Definition ParticleTrack.h:19
One birth's complete trajectory, including keys exactly at birth and death.
Definition ParticleTrack.h:27
std::vector< ParticleTrackKey > keys
Definition ParticleTrack.h:30