Vec2 fluent builder. 更多...
#include <MotionBuilder.h>
友元 | |
| class | MotionSequence |
详细描述
Vec2 fluent builder.
在文件 MotionBuilder.h 第 85 行定义.
构造及析构函数说明
◆ MotionVec2Builder()
| eve::animation::MotionVec2Builder::MotionVec2Builder | ( | MotionRuntime & | runtime, |
| MotionVec2 | from, | ||
| MotionVec2 | to, | ||
| float | duration | ||
| ) |
Motion vec 2 builder.
在文件 MotionBuilder.cpp 第 85 行定义.
引用了 duration, eve::animation::MotionRuntime::Vec2Desc::duration, eve::animation::MotionRuntime::Vec2Desc::from, from, eve::animation::MotionRuntime::Vec2Desc::to , 以及 to.
成员函数说明
◆ bind()
| eve::Result< MotionHandle > eve::animation::MotionVec2Builder::bind | ( | IMotionVec2Sink & | sink | ) |
Binds .
在文件 MotionBuilder.cpp 第 141 行定义.
引用了 eve::Result< T >::failure(), eve::animation::MotionRuntime::Vec2Desc::sink , 以及 eve::animation::MotionRuntime::spawnVec2().
◆ cancelOnError()
| MotionVec2Builder & eve::animation::MotionVec2Builder::cancelOnError | ( | bool | enabled | ) |
Cancel on error.
在文件 MotionBuilder.cpp 第 124 行定义.
引用了 eve::animation::MotionRuntime::Vec2Desc::cancelOnError , 以及 enabled.
◆ dampingRatio()
| MotionVec2Builder & eve::animation::MotionVec2Builder::dampingRatio | ( | float | ratio | ) |
Damping ratio for Punch/Shake (0 = none, 1 = full).
在文件 MotionBuilder.cpp 第 251 行定义.
◆ delay()
| MotionVec2Builder & eve::animation::MotionVec2Builder::delay | ( | float | seconds | ) |
◆ ease()
| MotionVec2Builder & eve::animation::MotionVec2Builder::ease | ( | std::string | kind | ) |
◆ frequency()
| MotionVec2Builder & eve::animation::MotionVec2Builder::frequency | ( | int | count | ) |
Oscillation count for Punch/Shake (default 10).
在文件 MotionBuilder.cpp 第 247 行定义.
引用了 count , 以及 eve::animation::MotionRuntime::Vec2Desc::frequency.
◆ loops()
| MotionVec2Builder & eve::animation::MotionVec2Builder::loops | ( | int | count, |
| MotionLoopMode | mode = MotionLoopMode::Restart |
||
| ) |
Loops.
在文件 MotionBuilder.cpp 第 103 行定义.
引用了 count, eve::animation::MotionRuntime::Vec2Desc::loopMode , 以及 eve::animation::MotionRuntime::Vec2Desc::loops.
◆ onCancel()
| MotionVec2Builder & eve::animation::MotionVec2Builder::onCancel | ( | MotionRuntime::VoidCallback | cb | ) |
◆ onComplete()
| MotionVec2Builder & eve::animation::MotionVec2Builder::onComplete | ( | MotionRuntime::VoidCallback | cb | ) |
On complete.
在文件 MotionBuilder.cpp 第 114 行定义.
◆ onUpdate()
| MotionVec2Builder & eve::animation::MotionVec2Builder::onUpdate | ( | MotionRuntime::Vec2Callback | cb | ) |
◆ run()
| eve::Result< MotionHandle > eve::animation::MotionVec2Builder::run | ( | ) |
◆ runtime() [1/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 124 行定义.
◆ runtime() [2/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 122 行定义.
◆ seed()
| MotionVec2Builder & eve::animation::MotionVec2Builder::seed | ( | std::uint32_t | value | ) |
Deterministic seed for Shake signs.
在文件 MotionBuilder.cpp 第 255 行定义.
引用了 eve::animation::MotionRuntime::Vec2Desc::seed , 以及 value.
◆ style()
| MotionVec2Builder & eve::animation::MotionVec2Builder::style | ( | MotionStyle | style | ) |
Select Tween / Punch / Shake evaluation.
在文件 MotionBuilder.cpp 第 243 行定义.
引用了 style() , 以及 eve::animation::MotionRuntime::Vec2Desc::style.
被这些函数引用 eve::animation::Animation::punchVec2(), eve::animation::Animation::shakeVec2() , 以及 style().
◆ takeDesc()
| eve::Result< MotionRuntime::Vec2Desc > eve::animation::MotionVec2Builder::takeDesc | ( | ) |
Take desc.
在文件 MotionBuilder.cpp 第 148 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::Result< T >::success().
◆ to()
| MotionVec2Builder & eve::animation::MotionVec2Builder::to | ( | IMotionVec2Sink & | sink | ) |
友元及相关函数文档
◆ MotionSequence
|
friend |
在文件 MotionBuilder.h 第 129 行定义.
该类的文档由以下文件生成:
- src/modules/animation/MotionBuilder.h
- src/modules/animation/MotionBuilder.cpp