载入中...
搜索中...
未找到
eve::avatar::NullLive2DBackend类 参考

Built-in Live2D placeholder backend (no Cubism SDK). Stores path / parameters / expression / motion so scripts and tests can run without a proprietary runtime. Replace via Avatar::registerLive2DBackend (see examples/live2d-backend-plugin). 更多...

#include <Live2DNullBackend.h>

类 eve::avatar::NullLive2DBackend 继承关系图:
eve::avatar::ILive2DBackend

Public 成员函数

std::string getName () const override
 Returns the name.
 
bool isRuntimeAvailable () const override
 True when runtime available.
 
bool loadModel (const std::string &path) override
 Loads model.
 
void update (float) override
 Updates .
 
void setParameter (const std::string &name, float value) override
 Sets the parameter.
 
float getParameter (const std::string &name) const override
 Returns the parameter.
 
bool setExpression (const std::string &name) override
 Sets the expression.
 
bool setMotion (const std::string &name) override
 Sets the motion.
 
std::string modelPath () const
 Model path.
 
std::string expression () const
 Expression.
 
std::string motion () const
 Motion.
 
- Public 成员函数 继承自 eve::avatar::ILive2DBackend
virtual ~ILive2DBackend ()=default
 Releases ILive2DBackend resources.
 
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.
 

详细描述

Built-in Live2D placeholder backend (no Cubism SDK). Stores path / parameters / expression / motion so scripts and tests can run without a proprietary runtime. Replace via Avatar::registerLive2DBackend (see examples/live2d-backend-plugin).

在文件 Live2DNullBackend.h 第 16 行定义.

成员函数说明

◆ expression()

std::string eve::avatar::NullLive2DBackend::expression ( ) const
inline

Expression.

在文件 Live2DNullBackend.h 第 58 行定义.

◆ getName()

std::string eve::avatar::NullLive2DBackend::getName ( ) const
inlineoverridevirtual

Returns the name.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 19 行定义.

◆ getParameter()

float eve::avatar::NullLive2DBackend::getParameter ( const std::string &  name) const
inlineoverridevirtual

Returns the parameter.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 38 行定义.

引用了 name.

◆ isRuntimeAvailable()

bool eve::avatar::NullLive2DBackend::isRuntimeAvailable ( ) const
inlineoverridevirtual

True when runtime available.

重载 eve::avatar::ILive2DBackend .

在文件 Live2DNullBackend.h 第 21 行定义.

◆ loadModel()

bool eve::avatar::NullLive2DBackend::loadModel ( const std::string &  path)
inlineoverridevirtual

Loads model.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 24 行定义.

引用了 path.

◆ modelPath()

std::string eve::avatar::NullLive2DBackend::modelPath ( ) const
inline

Model path.

在文件 Live2DNullBackend.h 第 56 行定义.

◆ motion()

std::string eve::avatar::NullLive2DBackend::motion ( ) const
inline

Motion.

在文件 Live2DNullBackend.h 第 60 行定义.

◆ setExpression()

bool eve::avatar::NullLive2DBackend::setExpression ( const std::string &  name)
inlineoverridevirtual

Sets the expression.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 44 行定义.

引用了 name.

◆ setMotion()

bool eve::avatar::NullLive2DBackend::setMotion ( const std::string &  name)
inlineoverridevirtual

Sets the motion.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 50 行定义.

引用了 name.

◆ setParameter()

void eve::avatar::NullLive2DBackend::setParameter ( const std::string &  name,
float  value 
)
inlineoverridevirtual

Sets the parameter.

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 33 行定义.

引用了 name , 以及 value.

◆ update()

void eve::avatar::NullLive2DBackend::update ( float  )
inlineoverridevirtual

Updates .

实现了 eve::avatar::ILive2DBackend.

在文件 Live2DNullBackend.h 第 30 行定义.


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