mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
WIP of assimp integration.
This commit is contained in:
parent
32c7f2c7a7
commit
bf170ffbca
2135 changed files with 1260856 additions and 7 deletions
45
Engine/source/ts/assimp/assimpAppSequence.cpp
Normal file
45
Engine/source/ts/assimp/assimpAppSequence.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#include "ts/assimp/assimpShapeLoader.h"
|
||||
|
||||
#include "console/console.h"
|
||||
#include "core/stream/fileStream.h"
|
||||
#include "core/stringTable.h"
|
||||
#include "math/mathIO.h"
|
||||
#include "ts/tsShape.h"
|
||||
#include "ts/tsShapeInstance.h"
|
||||
#include "materials/materialManager.h"
|
||||
#include "console/persistenceManager.h"
|
||||
#include "ts/assimp/assimpAppMaterial.h"
|
||||
#include "ts/assimp/assimpAppSequence.h"
|
||||
|
||||
AssimpAppSequence::AssimpAppSequence(aiAnimation *a) :
|
||||
mAnim(a)
|
||||
{
|
||||
fps = mAnim->mTicksPerSecond;
|
||||
}
|
||||
|
||||
AssimpAppSequence::~AssimpAppSequence()
|
||||
{
|
||||
}
|
||||
|
||||
F32 AssimpAppSequence::getStart() const
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
F32 AssimpAppSequence::getEnd() const
|
||||
{
|
||||
return (F32)mAnim->mDuration / fps;
|
||||
}
|
||||
|
||||
U32 AssimpAppSequence::getFlags() const
|
||||
{
|
||||
return TSShape::Blend;
|
||||
}
|
||||
F32 AssimpAppSequence::getPriority() const
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
F32 AssimpAppSequence::getBlendRefTime() const
|
||||
{
|
||||
return -1.0f;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue