18#include <OgreSkeleton.h>
53 Ogre::ResourceManager *creator,
const String &name, Ogre::ResourceHandle handle,
54 const String &group,
bool is_manual =
false, Ogre::ManualResourceLoader *loader = NULL
78 void AddTo(Ogre::SkeletonPtr skeleton,
const String &name)
const;
124 virtual void loadImpl() override final;
146 Ogre::TransformKeyFrame *key_frame,
147 const Ogre::Vector3 &rotation
Handles A files.
Definition: VGearsAFile.h:30
uint32 bone_count_
The number of bones.
Definition: VGearsAFile.h:155
static const Ogre::Real FRAME_DURATION
Duration of a frame.
Definition: VGearsAFile.h:65
void SetFrameRotation(Ogre::TransformKeyFrame *key_frame, const Ogre::Vector3 &rotation) const
Sets the rotation for a frame.
Definition: VGearsAFile.cpp:67
static const String RESOURCE_TYPE
The type of resource.
Definition: VGearsAFile.h:70
std::vector< Frame > FrameList
Definition: VGearsAFile.h:103
AFile(Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL)
Constructor.
Definition: VGearsAFile.cpp:30
virtual void loadImpl() override final
Loads the file.
Definition: VGearsAFile.cpp:42
size_t CalculateSize() const
Calculates the size of the file.
Definition: VGearsAFile.cpp:53
void AddTo(Ogre::SkeletonPtr skeleton, const String &name) const
Adds an animation to an skeleton.
Definition: VGearsAFile.cpp:80
std::vector< Ogre::Vector3 > BoneRotationList
Definition: VGearsAFile.h:80
void SetBoneCount(const uint32 bone_count)
Sets the number of bones.
Definition: VGearsAFile.cpp:40
virtual ~AFile()
Destructor.
Definition: VGearsAFile.cpp:38
FrameList frames_
The list of frames.
Definition: VGearsAFile.h:160
FrameList & GetFrames()
Retrieves the list of frames in the file.
Definition: VGearsAFile.h:110
virtual void unloadImpl() override final
Unloads the file.
Definition: VGearsAFile.cpp:48
A resource.
Definition: VGearsResource.h:29
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37
Ogre::uint32 uint32
Definition: TypeDefine.h:33
Ogre::SharedPtr< AFile > AFilePtr
Definition: VGearsAFile.h:163
A frame in an animation.
Definition: VGearsAFile.h:85
Ogre::Vector3 root_rotation
The rotation of the whole skeleton in the frame.
Definition: VGearsAFile.h:90
BoneRotationList bone_rotations
The list of individual bone rotations in the frame.
Definition: VGearsAFile.h:100
Ogre::Vector3 root_translation
The translation of the whole skeleton in the frame.
Definition: VGearsAFile.h:95