载入中...
搜索中...
未找到
eve::stylize::AfterimageEffect类 参考

Fixed-rate owning transform history emitted as mesh-particle instances. 更多...

#include <MotionEchoEffect.h>

Public 成员函数

 AfterimageEffect (AfterimageEffectConfig config={})
 Construct with sanitized timing/capacity limits.
 
void reset () noexcept
 Clear images and reset stable identity/timing state.
 
MotionEchoAdvanceReport update (float deltaSeconds, const glm::mat4 &currentModel)
 Advance and capture the current model at fixed intervals.
 
std::vector< MeshParticleInstance > snapshot () const
 Return render instances in oldest-to-newest stable order.
 
std::size_t size () const noexcept
 Return retained image count.
 

详细描述

Fixed-rate owning transform history emitted as mesh-particle instances.

Stable IDs remain valid until each snapshot expires. The class owns no mesh, shader or target handle and is therefore safe to update outside rendering.

在文件 MotionEchoEffect.h 第 95 行定义.

构造及析构函数说明

◆ AfterimageEffect()

eve::stylize::AfterimageEffect::AfterimageEffect ( AfterimageEffectConfig  config = {})
explicit

成员函数说明

◆ reset()

void eve::stylize::AfterimageEffect::reset ( )
noexcept

Clear images and reset stable identity/timing state.

在文件 MotionEchoEffect.cpp 第 143 行定义.

◆ size()

std::size_t eve::stylize::AfterimageEffect::size ( ) const
inlinenoexcept

Return retained image count.

在文件 MotionEchoEffect.h 第 116 行定义.

◆ snapshot()

std::vector< MeshParticleInstance > eve::stylize::AfterimageEffect::snapshot ( ) const

◆ update()

MotionEchoAdvanceReport eve::stylize::AfterimageEffect::update ( float  deltaSeconds,
const glm::mat4 &  currentModel 
)

Advance and capture the current model at fixed intervals.

参数
deltaSecondsNon-negative caller-owned simulation delta.
currentModelCurrent world model matrix copied into new snapshots.
返回
Capture, expiration and live counters.

在文件 MotionEchoEffect.cpp 第 149 行定义.

引用了 eve::stylize::MotionEchoAdvanceReport::alive, eve::stylize::MotionEchoAdvanceReport::captured, eve::stylize::MotionEchoAdvanceReport::expired, image, eve::stylize::AfterimageEffectConfig::lifetimeSeconds, eve::stylize::AfterimageEffectConfig::maximumImages , 以及 eve::stylize::AfterimageEffectConfig::sampleIntervalSeconds.


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