mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-27 03:53:24 +00:00
26 lines
430 B
C++
26 lines
430 B
C++
#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;
|
|
}
|
|
}
|