SO3Engine
ALConverterNodeAnim.h
Go to the documentation of this file.
1#ifndef ALCONVERTERNODEANIM_H
2#define ALCONVERTERNODEANIM_H
3
4#include "ALObject.h"
5
6// STL
7#include <vector>
8
9// Tinyxml2
11
12
13namespace SO3
14{
15 class ALScene;
16
18 {
19 public:
20 ALConverterNodeAnim(ALScene* scene, aiAnimation* animation, aiNodeAnim* nodeAnim, aiNode* node, double tickPerSec);
21
23
24 bool isAffected(aiString nodeName);
25 void convert(tinyxml2::XMLElement* xmlAnimations, bool first = false);
26 void load(SNode* ogNode);
27 private:
28 double getTime();
29 unsigned int getBiggest(unsigned int* data, unsigned int size);
30 template<typename T> T getBiggerValue(T* data, unsigned int size);
31
32 aiAnimation* mAnim;
33 aiNodeAnim* mNodeAnim;
34 aiNode* mNode;
35 ALScene* mScene;
36 double mTickPerSec;
37 };
38};
39
40#endif // ALCONVERTERNODEANIM_H
bool isAffected(aiString nodeName)
void convert(tinyxml2::XMLElement *xmlAnimations, bool first=false)