2019-02-08 16:25:43 -06:00
|
|
|
#pragma once
|
|
|
|
|
#ifndef _MMATH_H_
|
|
|
|
|
#include "math/mMath.h"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _TVECTOR_H_
|
|
|
|
|
#include "core/util/tVector.h"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _TSSHAPE_H_
|
|
|
|
|
#include "ts/tsShape.h"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _APPNODE_H_
|
|
|
|
|
#include "ts/loader/appNode.h"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _APPMESH_H_
|
|
|
|
|
#include "ts/loader/appMesh.h"
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef _APPSEQUENCE_H_
|
|
|
|
|
#include "ts/loader/appSequence.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <assimp/scene.h>
|
|
|
|
|
|
|
|
|
|
class AssimpAppSequence : public AppSequence
|
|
|
|
|
{
|
2019-04-22 00:12:49 -04:00
|
|
|
String mSequenceName;
|
2019-04-18 16:45:52 -04:00
|
|
|
F32 seqStart;
|
|
|
|
|
F32 seqEnd;
|
2019-04-22 06:52:59 -04:00
|
|
|
F32 mTimeMultiplier; // The factor needed to convert the sequence data timestamp to seconds
|
2019-04-18 16:45:52 -04:00
|
|
|
|
2019-02-08 16:25:43 -06:00
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
AssimpAppSequence(aiAnimation *a);
|
|
|
|
|
~AssimpAppSequence();
|
|
|
|
|
|
|
|
|
|
aiAnimation *mAnim;
|
|
|
|
|
|
2019-04-18 16:45:52 -04:00
|
|
|
virtual void setActive(bool active);
|
2019-02-08 16:25:43 -06:00
|
|
|
|
|
|
|
|
virtual S32 getNumTriggers() const { return 0; }
|
|
|
|
|
virtual void getTrigger(S32 index, TSShape::Trigger& trigger) const { trigger.state = 0; }
|
|
|
|
|
|
2019-04-22 00:12:49 -04:00
|
|
|
virtual const char* getName() const { return mSequenceName.c_str(); }
|
2019-02-08 16:25:43 -06:00
|
|
|
|
2019-04-18 16:45:52 -04:00
|
|
|
F32 getStart() const { return seqStart; }
|
|
|
|
|
F32 getEnd() const { return seqEnd; }
|
|
|
|
|
void setEnd(F32 end) { seqEnd = end; }
|
2019-02-08 16:25:43 -06:00
|
|
|
|
|
|
|
|
virtual U32 getFlags() const;
|
|
|
|
|
virtual F32 getPriority() const;
|
|
|
|
|
virtual F32 getBlendRefTime() const;
|
|
|
|
|
};
|