Avatar module — layered character rendering for VN / portrait use. Script: avatar <- eve.Avatar();
更多...
#include <Avatar.h>
Public 成员函数 | |
| Module_REG (Avatar) | |
| Avatar ()=default | |
| ~Avatar () override | |
| AvatarInstance * | newImageAvatar () |
| AvatarInstance * | newLive2DAvatar () |
| AvatarInstance * | newVroidAvatar () |
| void | update (float dt) |
| void | sync () |
| Sync all live avatars into renderables. | |
| void | render (graphics::Graphics *gfx) |
| Sync then draw Image/Live2D avatars via the shared 2D sprite queue (does not present). VRoid uses Renderable3D + gfx.render3D separately. | |
| int | getAvatarCount () const |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| virtual std::string | getName () const =0 |
静态 Public 成员函数 | |
| static void | registerLive2DBackend (Live2DBackendFactory factory) |
| C++ / plugin: replace Live2D backend factory. Pass nullptr to restore the built-in NullLive2DBackend ("null"). | |
| static Live2DBackendFactory | live2DBackendFactory () |
| static ILive2DBackend * | createLive2DBackend () |
| Always returns a backend: custom factory, else NullLive2DBackend. | |
| static std::string | getLive2DBackendName () |
| Backend name currently in effect ("null" when using the built-in stub). | |
友元 | |
| class | AvatarInstance |
详细描述
Avatar module — layered character rendering for VN / portrait use. Script: avatar <- eve.Avatar();
Factories: newImageAvatar / newLive2DAvatar / newVroidAvatar. Image layers are the baseline; Live2D uses a pluggable backend; VRoid wraps Model3D + Renderable3D.
构造及析构函数说明
◆ Avatar()
|
default |
◆ ~Avatar()
|
override |
在文件 Avatar.cpp 第 15 行定义.
引用了 a.
成员函数说明
◆ createLive2DBackend()
|
static |
Always returns a backend: custom factory, else NullLive2DBackend.
在文件 Avatar.cpp 第 71 行定义.
引用了 eve::avatar::createNullLive2DBackend() , 以及 f.
被这些函数引用 getLive2DBackendName(), eve::avatar::AvatarInstance::loadLive2DModel(), eve::avatar::AvatarInstance::setExpression(), eve::avatar::AvatarInstance::setMotion(), eve::avatar::AvatarInstance::setParameter() , 以及 eve::avatar::AvatarInstance::update().
◆ getAvatarCount()
| int eve::avatar::Avatar::getAvatarCount | ( | ) | const |
在文件 Avatar.cpp 第 63 行定义.
◆ getLive2DBackendName()
|
static |
Backend name currently in effect ("null" when using the built-in stub).
在文件 Avatar.cpp 第 76 行定义.
引用了 createLive2DBackend(), eve::avatar::ILive2DBackend::getName() , 以及 n.
被这些函数引用 eve::avatar::AvatarInstance::getLive2DBackendName().
◆ live2DBackendFactory()
|
static |
在文件 Avatar.cpp 第 69 行定义.
◆ Module_REG()
| eve::avatar::Avatar::Module_REG | ( | Avatar | ) |
◆ newImageAvatar()
| AvatarInstance * eve::avatar::Avatar::newImageAvatar | ( | ) |
在文件 Avatar.cpp 第 35 行定义.
引用了 AvatarInstance.
◆ newLive2DAvatar()
| AvatarInstance * eve::avatar::Avatar::newLive2DAvatar | ( | ) |
在文件 Avatar.cpp 第 37 行定义.
引用了 AvatarInstance.
◆ newVroidAvatar()
| AvatarInstance * eve::avatar::Avatar::newVroidAvatar | ( | ) |
在文件 Avatar.cpp 第 39 行定义.
引用了 AvatarInstance.
◆ registerLive2DBackend()
|
static |
C++ / plugin: replace Live2D backend factory. Pass nullptr to restore the built-in NullLive2DBackend ("null").
在文件 Avatar.cpp 第 65 行定义.
◆ render()
| void eve::avatar::Avatar::render | ( | graphics::Graphics * | gfx | ) |
Sync then draw Image/Live2D avatars via the shared 2D sprite queue (does not present). VRoid uses Renderable3D + gfx.render3D separately.
在文件 Avatar.cpp 第 55 行定义.
引用了 eve::graphics::RenderSystem::collectSprites(), eve::graphics::RenderSystem::drawItems() , 以及 sync().
◆ sync()
| void eve::avatar::Avatar::sync | ( | ) |
◆ update()
| void eve::avatar::Avatar::update | ( | float | dt | ) |
在文件 Avatar.cpp 第 41 行定义.
引用了 a.
友元及相关函数文档
◆ AvatarInstance
|
friend |
被这些函数引用 newImageAvatar(), newLive2DAvatar() , 以及 newVroidAvatar().
该类的文档由以下文件生成:
- src/modules/avatar/Avatar.h
- src/modules/avatar/Avatar.cpp
Public 成员函数 继承自