V-Gears 0
Free Final Fantasy VII engine.
VGearsHRCSkeletonLoader.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include <OgreResource.h>
19#include "common/TypeDefine.h"
20
21namespace VGears{
22 class HRCFile;
23
27 class HRCSkeletonLoader : public Ogre::ManualResourceLoader{
28
29 public:
30
36 explicit HRCSkeletonLoader(HRCFile &hrc_file);
37
41 virtual ~HRCSkeletonLoader();
42
48 virtual void loadResource( Ogre::Resource *resource );
49
50 protected:
51
55 static const String ROOT_BONE_NAME;
56
60 static const Ogre::Quaternion ROOT_ORIENTATION;
61
65 static Ogre::Quaternion CreateRootOrientation();
66
67 private:
68
70 };
71}
Handles HRC files.
Definition: VGearsHRCFile.h:34
A loader for skeletons.
Definition: VGearsHRCSkeletonLoader.h:27
virtual ~HRCSkeletonLoader()
Destructor.
Definition: VGearsHRCSkeletonLoader.cpp:33
static Ogre::Quaternion CreateRootOrientation()
Creates a base orientation for the skeleton.
Definition: VGearsHRCSkeletonLoader.cpp:35
static const String ROOT_BONE_NAME
The name of the root bone.
Definition: VGearsHRCSkeletonLoader.h:55
virtual void loadResource(Ogre::Resource *resource)
Loads a resource.
Definition: VGearsHRCSkeletonLoader.cpp:41
HRCSkeletonLoader(HRCFile &hrc_file)
Constructor.
Definition: VGearsHRCSkeletonLoader.cpp:30
static const Ogre::Quaternion ROOT_ORIENTATION
The root orientation.
Definition: VGearsHRCSkeletonLoader.h:60
HRCFile & hrc_file_
Definition: VGearsHRCSkeletonLoader.h:69
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37