diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Animation/StreamedClipBuilder.h |
Diffstat (limited to 'Runtime/Animation/StreamedClipBuilder.h')
-rw-r--r-- | Runtime/Animation/StreamedClipBuilder.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Runtime/Animation/StreamedClipBuilder.h b/Runtime/Animation/StreamedClipBuilder.h new file mode 100644 index 0000000..7ae55d1 --- /dev/null +++ b/Runtime/Animation/StreamedClipBuilder.h @@ -0,0 +1,16 @@ +#pragma once + +#include "Runtime/Math/AnimationCurve.h" +#include "Runtime/mecanim/animation/streamedclip.h" + +struct StreamedClipBuilder; + +StreamedClipBuilder* CreateStreamedClipBuilder(UInt32 curveCount, UInt32 keyCount); +void DestroyStreamedClipBuilder(StreamedClipBuilder* builder); + +template<class T> +void AddCurveToStreamedClip(StreamedClipBuilder* builder, int curveIndex, const AnimationCurveTpl<T>& curve); + +void AddIntegerCurveToStreamedClip(StreamedClipBuilder* builder, int curveIndex, float* time, int* value, int count); + +void CreateStreamClipConstant (StreamedClipBuilder* builder, mecanim::animation::StreamedClip& clip, mecanim::memory::Allocator& alloc); |