18#include <OgreResource.h>
20#include <OgreSkeleton.h>
27 class HRCSkeletonLoader;
62 Ogre::ResourceManager *creator,
const String &name,
63 Ogre::ResourceHandle handle,
const String &group,
64 bool is_manual =
false, Ogre::ManualResourceLoader *loader = NULL
167 virtual void loadImpl() override final;
Handles HRC files.
Definition: VGearsHRCFile.h:34
Ogre::SkeletonPtr skeleton_
The skeleton.
Definition: VGearsHRCFile.h:216
virtual void SetSkeletonName(const String &name)
Sets a name for the skelenton.
Definition: VGearsHRCFile.cpp:129
Ogre::MeshPtr mesh_
The mesh assigned to the skeleton.
Definition: VGearsHRCFile.h:221
HRCMeshLoader * mesh_loader_
The mesh loader.
Definition: VGearsHRCFile.h:206
HRCSkeletonLoader * skeleton_loader_
The skeleton loader.
Definition: VGearsHRCFile.h:211
std::vector< Bone > BoneList
Definition: VGearsHRCFile.h:104
virtual ~HRCFile()
Destructor.
Definition: VGearsHRCFile.cpp:44
virtual BoneList & GetBones()
Retrieves the list of bones in the skeleton.
Definition: VGearsHRCFile.h:141
BoneList bones_
The bones in the skeleton.
Definition: VGearsHRCFile.h:201
virtual String GetSkeletonFileName() const
Retrieves the skeleton file name.
Definition: VGearsHRCFile.cpp:131
virtual void loadImpl() override final
Loads the file.
Definition: VGearsHRCFile.cpp:63
HRCFile(Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL)
Constructor.
Definition: VGearsHRCFile.cpp:35
String skeleton_name_
The skeleton name.
Definition: VGearsHRCFile.h:196
virtual size_t CalculateSize() const
Calculates the size of the skeleton.
Definition: VGearsHRCFile.cpp:117
virtual const String & GetSkeletonName() const
Retrieves the skeleton name.
Definition: VGearsHRCFile.h:118
virtual void unloadImpl() override final
Unloads the file.
Definition: VGearsHRCFile.cpp:97
static const float DOWN_SCALER
Scale down constant.
Definition: VGearsHRCFile.h:41
virtual Ogre::SkeletonPtr GetSkeleton() const
Retrieves the skeleton.
Definition: VGearsHRCFile.cpp:143
virtual String GetMeshFileName() const
Retrieves the file name of the mesh assigned to the skeleton.
Definition: VGearsHRCFile.cpp:137
virtual const BoneList & GetBones() const
Retrieves the list of bones in the skeleton.
Definition: VGearsHRCFile.h:148
std::vector< String > RSDNameList
Definition: VGearsHRCFile.h:72
static const String RESOURCE_TYPE
The type of resource.
Definition: VGearsHRCFile.h:160
A loader for skeleton meshes.
Definition: VGearsHRCMeshLoader.h:26
A loader for skeletons.
Definition: VGearsHRCSkeletonLoader.h:27
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37
Ogre::SharedPtr< HRCFile > HRCFilePtr
Definition: VGearsHRCFile.h:224
A bone in a skeleton.
Definition: VGearsHRCFile.h:77
String name
Bone name.
Definition: VGearsHRCFile.h:82
RSDNameList rsd_names
List of RDS file assigned to the bone.
Definition: VGearsHRCFile.h:101
String parent
Parent bone name.
Definition: VGearsHRCFile.h:87
Ogre::Real length
Bone length.
Definition: VGearsHRCFile.h:94