添加gltfAnimation
parent
d7a2f8d738
commit
909f9eb57a
|
@ -27,7 +27,12 @@ set(GLTF_MODEL_LOADER
|
|||
"render/glTFSkin.cpp"
|
||||
"render/glTFNode.h"
|
||||
"render/glTFNode.cpp"
|
||||
"render/glTFAnimationChannel.h" "render/glTFAnimationChannel.cpp" "render/glTFAnimationSampler.h" "render/glTFAnimationSampler.cpp")
|
||||
"render/glTFAnimationChannel.h"
|
||||
"render/glTFAnimationChannel.cpp"
|
||||
"render/glTFAnimationSampler.h"
|
||||
"render/glTFAnimationSampler.cpp"
|
||||
|
||||
"render/glTFAnimation.h" "render/glTFAnimation.cpp")
|
||||
|
||||
set(VULKAN_BASE
|
||||
"${PLUMAGE_RENDER}/VulkanBase_Marco.h"
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#include "glTFAnimation.h"
|
||||
|
||||
|
||||
GLTFLOADER_NAMESPACE_BEGIN
|
||||
|
||||
glTFAnimation::glTFAnimation()
|
||||
{
|
||||
}
|
||||
|
||||
glTFAnimation::~glTFAnimation()
|
||||
{
|
||||
}
|
||||
|
||||
GLTFLOADER_NAMESPACE_END
|
|
@ -0,0 +1,33 @@
|
|||
#ifndef GLTFANIMATION_H
|
||||
#define GLTFANIMATION_H
|
||||
|
||||
#include "glTFModel_Marco.h"
|
||||
|
||||
|
||||
#include "glTFAnimationChannel.h"
|
||||
#include "glTFAnimationSampler.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <limits>
|
||||
|
||||
GLTFLOADER_NAMESPACE_BEGIN
|
||||
|
||||
class glTFAnimation
|
||||
{
|
||||
public:
|
||||
glTFAnimation();
|
||||
~glTFAnimation();
|
||||
|
||||
private:
|
||||
std::string name;
|
||||
std::vector<glTFAnimationSampler> samplers;
|
||||
std::vector<glTFAnimationChannel> channels;
|
||||
float start = std::numeric_limits<float>::max();
|
||||
float end = std::numeric_limits<float>::min();
|
||||
};
|
||||
|
||||
|
||||
GLTFLOADER_NAMESPACE_END
|
||||
|
||||
#endif // !GLTFANIMATION
|
Loading…
Reference in New Issue