Optional Live2D runtime backend (Cubism etc.). Registered from C++ / plugins. 更多...
#include <AvatarInstance.h>
Public 成员函数 | |
| virtual | ~ILive2DBackend ()=default |
| Releases ILive2DBackend resources. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
| virtual bool | isRuntimeAvailable () const |
| True only for a backend that can render a real Live2D model. | |
| virtual bool | loadModel (const std::string &path)=0 |
| Loads model. | |
| virtual void | update (float dt)=0 |
| Updates . | |
| virtual void | setParameter (const std::string &name, float value)=0 |
| Sets the parameter. | |
| virtual float | getParameter (const std::string &name) const =0 |
| Returns the parameter. | |
| virtual bool | setExpression (const std::string &name)=0 |
| Sets the expression. | |
| virtual bool | setMotion (const std::string &name)=0 |
| Sets the motion. | |
| virtual void | setTransform (float, float, float, float) |
| Optional: receive the Avatar's 2D transform. | |
| virtual void | setVisible (bool) |
| Optional: receive the Avatar's effective visibility. | |
| virtual void | setLayer (int) |
| Optional: receive the Avatar's render sorting layer. | |
| virtual void | collectDrawItems (std::vector< graphics::DrawItem2D > &) |
| Optional: push drawables into the 2D queue. Default no-op. | |
详细描述
Optional Live2D runtime backend (Cubism etc.). Registered from C++ / plugins.
在文件 AvatarInstance.h 第 75 行定义.
构造及析构函数说明
◆ ~ILive2DBackend()
|
virtualdefault |
Releases ILive2DBackend resources.
成员函数说明
◆ collectDrawItems()
|
inlinevirtual |
Optional: push drawables into the 2D queue. Default no-op.
在文件 AvatarInstance.h 第 102 行定义.
被这些函数引用 eve::avatar::AvatarInstance::collectLive2DDrawItems().
◆ getName()
|
pure virtual |
Returns the name.
在 eve::avatar::NullLive2DBackend 内被实现.
被这些函数引用 eve::avatar::Avatar::getLive2DBackendName() , 以及 eve::avatar::AvatarInstance::getLive2DBackendName().
◆ getParameter()
|
pure virtual |
Returns the parameter.
在 eve::avatar::NullLive2DBackend 内被实现.
◆ isRuntimeAvailable()
|
inlinevirtual |
True only for a backend that can render a real Live2D model.
被 eve::avatar::NullLive2DBackend 重载.
在文件 AvatarInstance.h 第 82 行定义.
被这些函数引用 eve::avatar::Avatar::hasLive2DBackend() , 以及 eve::avatar::AvatarInstance::hasLive2DBackend().
◆ loadModel()
|
pure virtual |
Loads model.
在 eve::avatar::NullLive2DBackend 内被实现.
◆ setExpression()
|
pure virtual |
Sets the expression.
在 eve::avatar::NullLive2DBackend 内被实现.
◆ setLayer()
|
inlinevirtual |
Optional: receive the Avatar's render sorting layer.
在文件 AvatarInstance.h 第 100 行定义.
被这些函数引用 eve::avatar::AvatarInstance::sync().
◆ setMotion()
|
pure virtual |
Sets the motion.
在 eve::avatar::NullLive2DBackend 内被实现.
◆ setParameter()
|
pure virtual |
Sets the parameter.
在 eve::avatar::NullLive2DBackend 内被实现.
◆ setTransform()
|
inlinevirtual |
Optional: receive the Avatar's 2D transform.
在文件 AvatarInstance.h 第 96 行定义.
被这些函数引用 eve::avatar::AvatarInstance::sync().
◆ setVisible()
|
inlinevirtual |
Optional: receive the Avatar's effective visibility.
在文件 AvatarInstance.h 第 98 行定义.
被这些函数引用 eve::avatar::AvatarInstance::sync().
◆ update()
|
pure virtual |
该类的文档由以下文件生成:
- src/modules/avatar/AvatarInstance.h