assimpAppSequence.h
Engine/source/ts/assimp/assimpAppSequence.h
Classes:
class
Detailed Description
1 2#pragma once 3#ifndef _MMATH_H_ 4#include "math/mMath.h" 5#endif 6#ifndef _TVECTOR_H_ 7#include "core/util/tVector.h" 8#endif 9#ifndef _TSSHAPE_H_ 10#include "ts/tsShape.h" 11#endif 12#ifndef _APPNODE_H_ 13#include "ts/loader/appNode.h" 14#endif 15#ifndef _APPMESH_H_ 16#include "ts/loader/appMesh.h" 17#endif 18#ifndef _APPSEQUENCE_H_ 19#include "ts/loader/appSequence.h" 20#endif 21 22#include <assimp/scene.h> 23 24class AssimpAppSequence : public AppSequence 25{ 26 String mSequenceName; 27 F32 seqStart; 28 F32 seqEnd; 29 F32 mTimeMultiplier; // The factor needed to convert the sequence data timestamp to seconds 30 31public: 32 33 AssimpAppSequence(aiAnimation *a); 34 ~AssimpAppSequence(); 35 36 aiAnimation *mAnim; 37 38 virtual void setActive(bool active); 39 40 virtual S32 getNumTriggers() const { return 0; } 41 virtual void getTrigger(S32 index, TSShape::Trigger& trigger) const { trigger.state = 0; } 42 43 virtual const char* getName() const { return mSequenceName.c_str(); } 44 45 F32 getStart() const { return seqStart; } 46 F32 getEnd() const { return seqEnd; } 47 void setEnd(F32 end) { seqEnd = end; } 48 49 virtual U32 getFlags() const; 50 virtual F32 getPriority() const; 51 virtual F32 getBlendRefTime() const; 52}; 53