plumageRender/src/gltf/glTFAnimationSampler.h

40 lines
854 B
C++

#ifndef GLTFANIMATIONSAMPLER_H
#define GLTFANIMATIONSAMPLER_H
#include "glTFModel_Marco.h"
#include "glTFModel_common.h"
#include <vector>
GLTFLOADER_NAMESPACE_BEGIN
class glTFAnimationSampler
{
public:
glTFAnimationSampler();
~glTFAnimationSampler();
void setOutputsVec4(std::vector<glm::vec4>& value);
std::vector<glm::vec4> getOutputsVec4();
void pushOutputsVec4Back(glm::vec4 value);
void setInputs(std::vector<float>& inputs);
std::vector<float> getInputs();
void pushInputBack(float value);
void setAnimationInterpolationType(AnimationInterpolationType interpolationType);
AnimationInterpolationType getAnimationInterpolationType();
private:
AnimationInterpolationType m_interpolationType;
std::vector<float> m_inputs;
std::vector<glm::vec4> m_outputsVec4;
};
GLTFLOADER_NAMESPACE_END
#endif // !GLTFANIMATIONSAMPLER_H