RavEngine
Loading...
Searching...
No Matches
fbx_animation.h
1//----------------------------------------------------------------------------//
2// //
3// ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation //
4// and distributed under the MIT License (MIT). //
5// //
6// Copyright (c) Guillaume Blanc //
7// //
8// Permission is hereby granted, free of charge, to any person obtaining a //
9// copy of this software and associated documentation files (the "Software"), //
10// to deal in the Software without restriction, including without limitation //
11// the rights to use, copy, modify, merge, publish, distribute, sublicense, //
12// and/or sell copies of the Software, and to permit persons to whom the //
13// Software is furnished to do so, subject to the following conditions: //
14// //
15// The above copyright notice and this permission notice shall be included in //
16// all copies or substantial portions of the Software. //
17// //
18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //
19// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //
20// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL //
21// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //
22// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING //
23// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER //
24// DEALINGS IN THE SOFTWARE. //
25// //
26//----------------------------------------------------------------------------//
27
28#ifndef OZZ_OZZ_ANIMATION_OFFLINE_FBX_FBX_ANIMATION_H_
29#define OZZ_OZZ_ANIMATION_OFFLINE_FBX_FBX_ANIMATION_H_
30
31#include "ozz/animation/offline/fbx/export.h"
32
33#include "ozz/animation/offline/fbx/fbx.h"
34
35#include "ozz/animation/offline/tools/import2ozz.h"
36
37#include "ozz/base/containers/string.h"
38#include "ozz/base/containers/vector.h"
39
40namespace ozz {
41namespace animation {
42
43class Skeleton;
44
45namespace offline {
46
47struct RawAnimation;
48struct RawFloatTrack;
49struct RawFloat2Track;
50struct RawFloat3Track;
51struct RawFloat4Track;
52struct RawquaternionTrack;
53
54namespace fbx {
55
56OZZ_ANIMFBX_DLL OzzImporter::AnimationNames GetAnimationNames(
57 FbxSceneLoader& _scene_loader);
58
59OZZ_ANIMFBX_DLL bool ExtractAnimation(const char* _animation_name,
60 FbxSceneLoader& _scene_loader, const Skeleton& _skeleton,
61 float _sampling_rate, RawAnimation* _animation);
62
63OZZ_ANIMFBX_DLL OzzImporter::NodeProperties GetNodeProperties(
64 FbxSceneLoader& _scene_loader,
65 const char* _node_name);
66
67OZZ_ANIMFBX_DLL bool ExtractTrack(const char* _animation_name,
68 const char* _node_name,
69 const char* _track_name,
70 OzzImporter::NodeProperty::Type _type,
71 FbxSceneLoader& _scene_loader, float _sampling_rate,
72 RawFloatTrack* _track);
73
74OZZ_ANIMFBX_DLL bool ExtractTrack(const char* _animation_name,
75 const char* _node_name,
76 const char* _track_name,
77 OzzImporter::NodeProperty::Type _type,
78 FbxSceneLoader& _scene_loader, float _sampling_rate,
79 RawFloat2Track* _track);
80
81OZZ_ANIMFBX_DLL bool ExtractTrack(const char* _animation_name,
82 const char* _node_name,
83 const char* _track_name,
84 OzzImporter::NodeProperty::Type _type,
85 FbxSceneLoader& _scene_loader, float _sampling_rate,
86 RawFloat3Track* _track);
87
88OZZ_ANIMFBX_DLL bool ExtractTrack(const char* _animation_name,
89 const char* _node_name,
90 const char* _track_name,
91 OzzImporter::NodeProperty::Type _type,
92 FbxSceneLoader& _scene_loader, float _sampling_rate,
93 RawFloat4Track* _track);
94} // namespace fbx
95} // namespace offline
96} // namespace animation
97} // namespace ozz
98#endif // OZZ_OZZ_ANIMATION_OFFLINE_FBX_FBX_ANIMATION_H_