载入中...
搜索中...
未找到
eve::physics::BakedParticlePlayback类 参考

Independent clock and placement over a shared immutable particle clip. @ownership Owns reusable scratch storage; shares only immutable clip samples. No source/world pointers. @thread Each player, including sampling, requires exclusive access; separate players are independent. 更多...

#include <BakedParticlePlayback.h>

Public 成员函数

 BakedParticlePlayback (BakedParticlePlayback &&) noexcept=default
 
BakedParticlePlayback & operator= (BakedParticlePlayback &&) noexcept=default
 
 BakedParticlePlayback (const BakedParticlePlayback &)=delete
 
BakedParticlePlayback & operator= (const BakedParticlePlayback &)=delete
 
Result< void > advance (double seconds)
 Advance explicit elapsed seconds; errors preserve time.
 
Result< void > seek (double seconds)
 Seek finite time, clamping to both endpoints.
 
Result< void > setRate (double rate)
 Set signed finite playback rate.
 
Result< void > setWrap (BakePlaybackWrap wrap)
 Set clamp or loop endpoint behavior.
 
void setPaused (bool paused) noexcept
 Pause without changing rate or time.
 
Result< void > setPlacement (BakeRigidPlacement placement)
 Set finite rigid placement around the baking origin, rotating sprite centers and degree angles; planar coordinates reject out-of-plane placement.
 
BakeRigidPlacement placement () const noexcept
 Current normalized instance placement.
 
double time () const noexcept
 Current playback time in seconds.
 
double rate () const noexcept
 Current signed speed.
 
bool paused () const noexcept
 Current paused state.
 
ParticleTrack track () const
 Return a cheap owning immutable clip copy, independent of player lifetime.
 
Result< std::size_t > sample (std::span< BakedParticleSample > output)
 Sample and transform into capacity-sized output; all failures preserve the caller's entire buffer. @ownership Borrows output only for this call. Retains only private scratch storage, never output addresses. @cost Linear in births, reusing preparation storage; no allocations, IO or solver calls on success.
 

静态 Public 成员函数

static Result< BakedParticlePlayback > prepare (ParticleTrack track)
 Prepare one player's scratch buffer; use separate preparations for independently controlled instances. @cost Linear in births for scratch allocation, amortized over all subsequent samples.
 

详细描述

Independent clock and placement over a shared immutable particle clip. @ownership Owns reusable scratch storage; shares only immutable clip samples. No source/world pointers. @thread Each player, including sampling, requires exclusive access; separate players are independent.

备注
Move-only to make buffer preparation explicit. Moved-from objects may only be destroyed or reassigned.

在文件 BakedParticlePlayback.h 第 11 行定义.

构造及析构函数说明

◆ BakedParticlePlayback() [1/2]

eve::physics::BakedParticlePlayback::BakedParticlePlayback ( BakedParticlePlayback &&  )
defaultnoexcept

◆ BakedParticlePlayback() [2/2]

eve::physics::BakedParticlePlayback::BakedParticlePlayback ( const BakedParticlePlayback &  )
delete

成员函数说明

◆ advance()

Result< void > eve::physics::BakedParticlePlayback::advance ( double  seconds)

Advance explicit elapsed seconds; errors preserve time.

在文件 BakedParticlePlayback.cpp 第 22 行定义.

◆ operator=() [1/2]

BakedParticlePlayback & eve::physics::BakedParticlePlayback::operator= ( BakedParticlePlayback &&  )
defaultnoexcept

◆ operator=() [2/2]

BakedParticlePlayback & eve::physics::BakedParticlePlayback::operator= ( const BakedParticlePlayback &  )
delete

◆ paused()

bool eve::physics::BakedParticlePlayback::paused ( ) const
noexcept

Current paused state.

在文件 BakedParticlePlayback.cpp 第 37 行定义.

◆ placement()

BakeRigidPlacement eve::physics::BakedParticlePlayback::placement ( ) const
noexcept

Current normalized instance placement.

在文件 BakedParticlePlayback.cpp 第 34 行定义.

◆ prepare()

Result< BakedParticlePlayback > eve::physics::BakedParticlePlayback::prepare ( ParticleTrack  track)
static

Prepare one player's scratch buffer; use separate preparations for independently controlled instances. @cost Linear in births for scratch allocation, amortized over all subsequent samples.

返回
Ready player or allocation diagnostic, without modifying the input clip.

在文件 BakedParticlePlayback.cpp 第 13 行定义.

引用了 eve::physics::ParticleTrack::capacity().

◆ rate()

double eve::physics::BakedParticlePlayback::rate ( ) const
noexcept

Current signed speed.

在文件 BakedParticlePlayback.cpp 第 36 行定义.

◆ sample()

Result< std::size_t > eve::physics::BakedParticlePlayback::sample ( std::span< BakedParticleSample >  output)

Sample and transform into capacity-sized output; all failures preserve the caller's entire buffer. @ownership Borrows output only for this call. Retains only private scratch storage, never output addresses. @cost Linear in births, reusing preparation storage; no allocations, IO or solver calls on success.

返回
Visible count or output extent/sample/placement overflow diagnostic; clock is never advanced implicitly.

在文件 BakedParticlePlayback.cpp 第 39 行定义.

引用了 angle, c, count, cx, cy, output, p, rotation, s, value, x , 以及 y.

◆ seek()

Result< void > eve::physics::BakedParticlePlayback::seek ( double  seconds)

Seek finite time, clamping to both endpoints.

在文件 BakedParticlePlayback.cpp 第 23 行定义.

◆ setPaused()

void eve::physics::BakedParticlePlayback::setPaused ( bool  paused)
noexcept

Pause without changing rate or time.

在文件 BakedParticlePlayback.cpp 第 26 行定义.

◆ setPlacement()

Result< void > eve::physics::BakedParticlePlayback::setPlacement ( BakeRigidPlacement  placement)

Set finite rigid placement around the baking origin, rotating sprite centers and degree angles; planar coordinates reject out-of-plane placement.

在文件 BakedParticlePlayback.cpp 第 27 行定义.

引用了 placement.

◆ setRate()

Result< void > eve::physics::BakedParticlePlayback::setRate ( double  rate)

Set signed finite playback rate.

在文件 BakedParticlePlayback.cpp 第 24 行定义.

引用了 rate.

◆ setWrap()

Result< void > eve::physics::BakedParticlePlayback::setWrap ( BakePlaybackWrap  wrap)

Set clamp or loop endpoint behavior.

在文件 BakedParticlePlayback.cpp 第 25 行定义.

◆ time()

double eve::physics::BakedParticlePlayback::time ( ) const
noexcept

Current playback time in seconds.

在文件 BakedParticlePlayback.cpp 第 35 行定义.

◆ track()

ParticleTrack eve::physics::BakedParticlePlayback::track ( ) const

Return a cheap owning immutable clip copy, independent of player lifetime.

在文件 BakedParticlePlayback.cpp 第 38 行定义.


该类的文档由以下文件生成: