V-Gears 0
Free Final Fantasy VII engine.
VGearsHRCMeshLoader.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 "VGearsHRCFile.h"
20
21namespace VGears{
22
26 class HRCMeshLoader : public Ogre::ManualResourceLoader{
27
28 public:
29
35 explicit HRCMeshLoader(HRCFile &hrc_file);
36
40 virtual ~HRCMeshLoader();
41
47 virtual void loadResource(Ogre::Resource *resource);
48
49 protected:
50
58 virtual void LoadBone(
59 Ogre::Mesh *mesh, const HRCFile::Bone &bone, const String &path
60 );
61
62 private:
63
68 };
69}
Handles HRC files.
Definition: VGearsHRCFile.h:34
A loader for skeleton meshes.
Definition: VGearsHRCMeshLoader.h:26
HRCFile & hrc_file_
The HRC file.
Definition: VGearsHRCMeshLoader.h:67
virtual void loadResource(Ogre::Resource *resource)
Loads a resource.
Definition: VGearsHRCMeshLoader.cpp:36
HRCMeshLoader(HRCFile &hrc_file)
Constructor.
Definition: VGearsHRCMeshLoader.cpp:32
virtual ~HRCMeshLoader()
Destructor.
Definition: VGearsHRCMeshLoader.cpp:34
virtual void LoadBone(Ogre::Mesh *mesh, const HRCFile::Bone &bone, const String &path)
Loads a bone.
Definition: VGearsHRCMeshLoader.cpp:49
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37
A bone in a skeleton.
Definition: VGearsHRCFile.h:77