载入中...
搜索中...
未找到
AnimationTensor.cpp
浏览该文件的文档.
2
5#include "common/Capability.h"
6
7#include <simplesquirrel/simplesquirrel.hpp>
8
9namespace eve::animation {
10
12 std::unique_ptr<SmrNeuralProvider> provider;
13};
14
16
17AnimationTensor::AnimationTensor() : impl_(std::make_unique<Impl>()) {
18 impl_->provider = std::make_unique<SmrNeuralProvider>();
19 cap::provide<ISmrNeuralRetarget>(impl_->provider.get());
20}
21
23 if (impl_ && impl_->provider) cap::revoke<ISmrNeuralRetarget>(impl_->provider.get());
24}
25
26void AnimationTensor::expose(ssq::Table& table) {
27 auto cls = table.addClass(name, AnimationTensor::create, false);
28 expose(cls);
29}
30
31void AnimationTensor::expose(ssq::Class& cls) { cls.addFunc("getName", &AnimationTensor::getName); }
32
33} // namespace eve::animation
HSQOBJECT cls
Definition ECS.cpp:21
std::string name
#define Module_IMPL(ModuleName, newExpr)
Definition Module.h:26
virtual std::string getName() const =0
Returns the name.
Manager-owned MeshRet neural retarget satellite (animation + tensor). @thread Owner/composition threa...
~AnimationTensor() override
Animation tensor.
std::unique_ptr< SmrNeuralProvider > provider