载入中...
搜索中...
未找到

Avatar module — layered character rendering for VN / portrait use. Script: avatar <- eve.Avatar(); 更多...

#include <Avatar.h>

类 eve::avatar::Avatar 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Avatar)
 
 Avatar ()=default
 Avatar.
 
 ~Avatar () override
 Avatar.
 
AvatarInstance * newImageAvatar ()
 Creates a image avatar. @ownership Caller deletes unless documented otherwise.
 
AvatarInstance * newLive2DAvatar ()
 Creates a live 2 d avatar. @ownership Caller deletes unless documented otherwise.
 
AvatarInstance * newVroidAvatar ()
 Creates a vroid avatar. @ownership Caller deletes unless documented otherwise.
 
void update (float dt)
 Updates .
 
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
 Returns the avatar count.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

静态 Public 成员函数

static void registerLive2DBackend (Live2DBackendFactory factory)
 C++ / plugin: replace Live2D backend factory. Pass nullptr to restore the built-in NullLive2DBackend ("null").
 
static Live2DBackendFactory live2DBackendFactory ()
 Live 2 d backend factory.
 
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).
 
static bool hasLive2DBackend ()
 True when the active backend is a real rendering runtime, not the null 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.h 第 25 行定义.

构造及析构函数说明

◆ Avatar()

eve::avatar::Avatar::Avatar ( )
default

◆ ~Avatar()

eve::avatar::Avatar::~Avatar ( )
override

Avatar.

在文件 Avatar.cpp 第 106 行定义.

引用了 a.

成员函数说明

◆ createLive2DBackend()

◆ getAvatarCount()

int eve::avatar::Avatar::getAvatarCount ( ) const

Returns the avatar count.

在文件 Avatar.cpp 第 157 行定义.

◆ getLive2DBackendName()

std::string eve::avatar::Avatar::getLive2DBackendName ( )
static

Backend name currently in effect ("null" when using the built-in stub).

在文件 Avatar.cpp 第 170 行定义.

引用了 createLive2DBackend(), eve::avatar::ILive2DBackend::getName() , 以及 n.

被这些函数引用 eve::avatar::AvatarInstance::getLive2DBackendName().

◆ hasLive2DBackend()

bool eve::avatar::Avatar::hasLive2DBackend ( )
static

True when the active backend is a real rendering runtime, not the null stub.

在文件 Avatar.cpp 第 178 行定义.

引用了 createLive2DBackend() , 以及 eve::avatar::ILive2DBackend::isRuntimeAvailable().

被这些函数引用 eve::avatar::AvatarInstance::hasLive2DBackend().

◆ live2DBackendFactory()

Live2DBackendFactory eve::avatar::Avatar::live2DBackendFactory ( )
static

Live 2 d backend factory.

在文件 Avatar.cpp 第 163 行定义.

◆ Module_REG()

eve::avatar::Avatar::Module_REG ( Avatar  )

◆ newImageAvatar()

AvatarInstance * eve::avatar::Avatar::newImageAvatar ( )

Creates a image avatar. @ownership Caller deletes unless documented otherwise.

在文件 Avatar.cpp 第 126 行定义.

引用了 AvatarInstance.

◆ newLive2DAvatar()

AvatarInstance * eve::avatar::Avatar::newLive2DAvatar ( )

Creates a live 2 d avatar. @ownership Caller deletes unless documented otherwise.

在文件 Avatar.cpp 第 128 行定义.

引用了 AvatarInstance.

◆ newVroidAvatar()

AvatarInstance * eve::avatar::Avatar::newVroidAvatar ( )

Creates a vroid avatar. @ownership Caller deletes unless documented otherwise.

在文件 Avatar.cpp 第 130 行定义.

引用了 AvatarInstance.

◆ registerLive2DBackend()

void eve::avatar::Avatar::registerLive2DBackend ( Live2DBackendFactory  factory)
static

C++ / plugin: replace Live2D backend factory. Pass nullptr to restore the built-in NullLive2DBackend ("null").

在文件 Avatar.cpp 第 159 行定义.

引用了 eve::avatar::createNullLive2DBackend().

◆ 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 第 146 行定义.

引用了 a, eve::graphics::RenderSystem::collectSprites(), eve::graphics::RenderSystem::drawItems() , 以及 sync().

◆ sync()

void eve::avatar::Avatar::sync ( )

Sync all live avatars into renderables.

在文件 Avatar.cpp 第 139 行定义.

引用了 a.

被这些函数引用 render().

◆ update()

void eve::avatar::Avatar::update ( float  dt)

Updates .

在文件 Avatar.cpp 第 132 行定义.

引用了 a.

友元及相关函数文档

◆ AvatarInstance

friend class AvatarInstance
friend

在文件 Avatar.h 第 67 行定义.

被这些函数引用 newImageAvatar(), newLive2DAvatar() , 以及 newVroidAvatar().


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