readable .vb format

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent a13d4f1244
commit 3753d08ca5
27 changed files with 783 additions and 274 deletions
+25
View File
@@ -0,0 +1,25 @@
#include"animation.h"
using namespace std;
namespace vb01{
Animation::Animation(string name){
this->name=name;
}
Animation::~Animation(){
}
void Animation::update(){
}
Animation::KeyframeGroup* Animation::getKeyframeGroup(Bone *b){
int id=-1;
for(int i=0;i<keyframeGroups.size();i++)
if(keyframeGroups[i].bone==b){
id=i;
break;
}
return id>-1?&(keyframeGroups[id]):nullptr;
}
}