添加gltfAnimation

reconstruct-gltfLoader
InkSoul 2025-04-06 17:03:18 +08:00
parent d7a2f8d738
commit 909f9eb57a
3 changed files with 53 additions and 1 deletions

View File

@ -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"

View File

@ -0,0 +1,14 @@
#include "glTFAnimation.h"
GLTFLOADER_NAMESPACE_BEGIN
glTFAnimation::glTFAnimation()
{
}
glTFAnimation::~glTFAnimation()
{
}
GLTFLOADER_NAMESPACE_END

View File

@ -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