-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize NIF loader, part 3 See merge request OpenMW/openmw!3418
- Loading branch information
Showing
27 changed files
with
603 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
322 changes: 153 additions & 169 deletions
322
apps/openmw_test_suite/nifloader/testbulletnifloader.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,10 @@ | ||
/* | ||
OpenMW - The completely unofficial reimplementation of Morrowind | ||
Copyright (C) 2008-2010 Nicolay Korslund | ||
Email: < [email protected] > | ||
WWW: https://openmw.org/ | ||
This file (data.h) is part of the OpenMW package. | ||
OpenMW is distributed as free software: you can redistribute it | ||
and/or modify it under the terms of the GNU General Public License | ||
version 3, as published by the Free Software Foundation. | ||
This program is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
version 3 along with this program. If not, see | ||
https://www.gnu.org/licenses/ . | ||
*/ | ||
|
||
#ifndef OPENMW_COMPONENTS_NIF_DATA_HPP | ||
#define OPENMW_COMPONENTS_NIF_DATA_HPP | ||
|
||
#include "nifkey.hpp" | ||
#include "niftypes.hpp" // Transformation | ||
#include "niftypes.hpp" // NiTransform | ||
#include "node.hpp" | ||
#include "recordptr.hpp" | ||
#include <components/nif/node.hpp> | ||
|
||
namespace Nif | ||
{ | ||
|
@@ -252,8 +229,8 @@ namespace Nif | |
{ | ||
NiSkinDataPtr mData; | ||
NiSkinPartitionPtr mPartitions; | ||
NodePtr mRoot; | ||
NodeList mBones; | ||
NiAVObjectPtr mRoot; | ||
NiAVObjectList mBones; | ||
|
||
void read(NIFStream* nif) override; | ||
void post(Reader& nif) override; | ||
|
@@ -278,12 +255,12 @@ namespace Nif | |
|
||
struct BoneInfo | ||
{ | ||
Transformation mTransform; | ||
NiTransform mTransform; | ||
osg::BoundingSpheref mBoundSphere; | ||
std::vector<VertWeight> mWeights; | ||
}; | ||
|
||
Transformation mTransform; | ||
NiTransform mTransform; | ||
std::vector<BoneInfo> mBones; | ||
NiSkinPartitionPtr mPartitions; | ||
|
||
|
@@ -413,5 +390,5 @@ namespace Nif | |
void read(NIFStream* nif) override; | ||
}; | ||
|
||
} // Namespace | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.