Owns typed motion slots and applies SimulationStep updates. 更多...
#include <MotionRuntime.h>
类 | |
| struct | ColorDesc |
| struct | FloatDesc |
| FloatDesc public API. 更多... | |
| struct | QuatDesc |
| struct | Vec2Desc |
| struct | Vec3Desc |
Public 类型 | |
| using | FloatCallback = std::function< void(float)> |
| using | Vec2Callback = std::function< void(MotionVec2)> |
| using | Vec3Callback = std::function< void(MotionVec3)> |
| using | ColorCallback = std::function< void(MotionColor)> |
| using | QuatCallback = std::function< void(MotionQuat)> |
| using | VoidCallback = std::function< void()> |
详细描述
Owns typed motion slots and applies SimulationStep updates.
@ownership Animation owns the runtime. Sinks and callbacks are borrowed. @thread Main-thread animation pump only; not synchronized. @reentrancy Callbacks must not spawn/cancel motions on this same runtime during advance (Phase 1 has no deferred command queue).
在文件 MotionRuntime.h 第 27 行定义.
成员类型定义说明
◆ ColorCallback
| using eve::animation::MotionRuntime::ColorCallback = std::function<void(MotionColor)> |
在文件 MotionRuntime.h 第 32 行定义.
◆ FloatCallback
| using eve::animation::MotionRuntime::FloatCallback = std::function<void(float)> |
在文件 MotionRuntime.h 第 29 行定义.
◆ QuatCallback
| using eve::animation::MotionRuntime::QuatCallback = std::function<void(MotionQuat)> |
在文件 MotionRuntime.h 第 33 行定义.
◆ Vec2Callback
| using eve::animation::MotionRuntime::Vec2Callback = std::function<void(MotionVec2)> |
在文件 MotionRuntime.h 第 30 行定义.
◆ Vec3Callback
| using eve::animation::MotionRuntime::Vec3Callback = std::function<void(MotionVec3)> |
在文件 MotionRuntime.h 第 31 行定义.
◆ VoidCallback
| using eve::animation::MotionRuntime::VoidCallback = std::function<void()> |
在文件 MotionRuntime.h 第 34 行定义.
构造及析构函数说明
◆ MotionRuntime() [1/2]
|
default |
◆ ~MotionRuntime()
|
default |
◆ MotionRuntime() [2/2]
|
delete |
成员函数说明
◆ activeCount()
|
noexcept |
◆ advance()
| eve::Result< void > eve::animation::MotionRuntime::advance | ( | const eve::SimulationStep & | step | ) |
在文件 MotionRuntime.cpp 第 707 行定义.
引用了 eve::Result< T >::failure(), r, eve::animation::detail::secondsForStep() , 以及 step.
被这些函数引用 eve::animation::Animation::advance().
◆ cancel()
| eve::Result< void > eve::animation::MotionRuntime::cancel | ( | MotionHandle | handle | ) |
在文件 MotionRuntime.cpp 第 653 行定义.
引用了 eve::Result< T >::failure() , 以及 handle.
◆ colorCapacity()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 151 行定义.
◆ colorValue()
| eve::Result< MotionColor > eve::animation::MotionRuntime::colorValue | ( | MotionHandle | handle | ) | const |
在文件 MotionRuntime.cpp 第 991 行定义.
引用了 eve::Result< T >::failure(), handle , 以及 eve::Result< T >::success().
◆ complete()
| eve::Result< void > eve::animation::MotionRuntime::complete | ( | MotionHandle | handle | ) |
在文件 MotionRuntime.cpp 第 619 行定义.
引用了 eve::Result< T >::failure() , 以及 handle.
◆ currentTick()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 176 行定义.
被这些函数引用 eve::animation::Animation::advance().
◆ ensureCapacity()
|
inline |
Convenience: ensure float pool capacity (primary hot path).
在文件 MotionRuntime.h 第 145 行定义.
◆ ensureColorCapacity()
| void eve::animation::MotionRuntime::ensureColorCapacity | ( | std::size_t | count | ) |
在文件 MotionRuntime.cpp 第 136 行定义.
引用了 count.
◆ ensureFloatCapacity()
| void eve::animation::MotionRuntime::ensureFloatCapacity | ( | std::size_t | count | ) |
Pre-size float pool slots (Inactive) and reserve storage.
- 注解
- Enables O(1) spawn via the free-list without reallocation churn.
在文件 MotionRuntime.cpp 第 100 行定义.
引用了 count.
◆ ensureQuatCapacity()
| void eve::animation::MotionRuntime::ensureQuatCapacity | ( | std::size_t | count | ) |
在文件 MotionRuntime.cpp 第 148 行定义.
引用了 count.
◆ ensureVec2Capacity()
| void eve::animation::MotionRuntime::ensureVec2Capacity | ( | std::size_t | count | ) |
在文件 MotionRuntime.cpp 第 112 行定义.
引用了 count.
◆ ensureVec3Capacity()
| void eve::animation::MotionRuntime::ensureVec3Capacity | ( | std::size_t | count | ) |
在文件 MotionRuntime.cpp 第 124 行定义.
引用了 count.
◆ floatCapacity()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 147 行定义.
◆ floatFreeCount()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 148 行定义.
◆ floatSlotCount()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 171 行定义.
◆ floatValue()
| eve::Result< float > eve::animation::MotionRuntime::floatValue | ( | MotionHandle | handle | ) | const |
在文件 MotionRuntime.cpp 第 601 行定义.
引用了 eve::Result< T >::failure(), handle , 以及 eve::Result< T >::success().
◆ hasCurrentTick()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 175 行定义.
被这些函数引用 eve::animation::Animation::advance().
◆ isActive()
|
noexcept |
◆ operator=()
|
delete |
◆ quatCapacity()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 152 行定义.
◆ quatValue()
| eve::Result< MotionQuat > eve::animation::MotionRuntime::quatValue | ( | MotionHandle | handle | ) | const |
在文件 MotionRuntime.cpp 第 997 行定义.
引用了 eve::Result< T >::failure(), handle , 以及 eve::Result< T >::success().
◆ spawnColor()
| eve::Result< MotionHandle > eve::animation::MotionRuntime::spawnColor | ( | const ColorDesc & | desc | ) |
在文件 MotionRuntime.cpp 第 951 行定义.
引用了 desc, eve::Result< T >::failure() , 以及 valid.
被这些函数引用 eve::animation::MotionColorBuilder::bind() , 以及 eve::animation::MotionColorBuilder::run().
◆ spawnFloat()
| eve::Result< MotionHandle > eve::animation::MotionRuntime::spawnFloat | ( | const FloatDesc & | desc | ) |
在文件 MotionRuntime.cpp 第 518 行定义.
引用了 desc, eve::Result< T >::failure() , 以及 valid.
被这些函数引用 eve::animation::MotionBuilder::bind(), eve::animation::MotionBuilder::run() , 以及 eve::animation::MotionSequence::run().
◆ spawnQuat()
| eve::Result< MotionHandle > eve::animation::MotionRuntime::spawnQuat | ( | const QuatDesc & | desc | ) |
在文件 MotionRuntime.cpp 第 971 行定义.
引用了 desc, eve::Result< T >::failure() , 以及 valid.
被这些函数引用 eve::animation::MotionQuatBuilder::bind() , 以及 eve::animation::MotionQuatBuilder::run().
◆ spawnVec2()
| eve::Result< MotionHandle > eve::animation::MotionRuntime::spawnVec2 | ( | const Vec2Desc & | desc | ) |
在文件 MotionRuntime.cpp 第 544 行定义.
引用了 desc, eve::Result< T >::failure() , 以及 valid.
被这些函数引用 eve::animation::MotionVec2Builder::bind(), eve::animation::MotionVec2Builder::run() , 以及 eve::animation::MotionSequence::run().
◆ spawnVec3()
| eve::Result< MotionHandle > eve::animation::MotionRuntime::spawnVec3 | ( | const Vec3Desc & | desc | ) |
在文件 MotionRuntime.cpp 第 570 行定义.
引用了 desc, eve::Result< T >::failure() , 以及 valid.
被这些函数引用 eve::animation::MotionVec3Builder::bind(), eve::animation::MotionVec3Builder::run() , 以及 eve::animation::MotionSequence::run().
◆ vec2Capacity()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 149 行定义.
◆ vec2Value()
| eve::Result< MotionVec2 > eve::animation::MotionRuntime::vec2Value | ( | MotionHandle | handle | ) | const |
在文件 MotionRuntime.cpp 第 607 行定义.
引用了 eve::Result< T >::failure(), handle , 以及 eve::Result< T >::success().
◆ vec3Capacity()
|
inlinenoexcept |
在文件 MotionRuntime.h 第 150 行定义.
◆ vec3Value()
| eve::Result< MotionVec3 > eve::animation::MotionRuntime::vec3Value | ( | MotionHandle | handle | ) | const |
在文件 MotionRuntime.cpp 第 613 行定义.
引用了 eve::Result< T >::failure(), handle , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/animation/MotionRuntime.h
- src/modules/animation/MotionRuntime.cpp