mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-07 07:40:19 +02:00
Remove forward declaration in HFM.h so ModelPackager and other things can use it instead
This commit is contained in:
parent
70c9db38ef
commit
e654ff9bbc
3 changed files with 20 additions and 32 deletions
|
@ -235,7 +235,7 @@ bool ModelPackager::zipModel() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelPackager::populateBasicMapping(QVariantHash& mapping, QString filename, const HFMModel& hfmModel) {
|
void ModelPackager::populateBasicMapping(QVariantHash& mapping, QString filename, const hfm::Model& hfmModel) {
|
||||||
|
|
||||||
bool isBodyType = _modelType == FSTReader::BODY_ONLY_MODEL || _modelType == FSTReader::HEAD_AND_BODY_MODEL;
|
bool isBodyType = _modelType == FSTReader::BODY_ONLY_MODEL || _modelType == FSTReader::HEAD_AND_BODY_MODEL;
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,12 @@
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QVariantHash>
|
#include <QVariantHash>
|
||||||
|
|
||||||
#include <hfm/HFM.h>
|
|
||||||
|
|
||||||
#include "ui/ModelsBrowser.h"
|
#include "ui/ModelsBrowser.h"
|
||||||
|
|
||||||
|
namespace hfm {
|
||||||
|
class Model;
|
||||||
|
};
|
||||||
|
|
||||||
class ModelPackager : public QObject {
|
class ModelPackager : public QObject {
|
||||||
public:
|
public:
|
||||||
static bool package();
|
static bool package();
|
||||||
|
@ -32,7 +34,7 @@ private:
|
||||||
bool editProperties();
|
bool editProperties();
|
||||||
bool zipModel();
|
bool zipModel();
|
||||||
|
|
||||||
void populateBasicMapping(QVariantHash& mapping, QString filename, const HFMModel& hfmModel);
|
void populateBasicMapping(QVariantHash& mapping, QString filename, const hfm::Model& hfmModel);
|
||||||
|
|
||||||
void listTextures();
|
void listTextures();
|
||||||
bool copyTextures(const QString& oldDir, const QDir& newDir);
|
bool copyTextures(const QString& oldDir, const QDir& newDir);
|
||||||
|
@ -44,7 +46,7 @@ private:
|
||||||
QString _scriptDir;
|
QString _scriptDir;
|
||||||
|
|
||||||
QVariantHash _mapping;
|
QVariantHash _mapping;
|
||||||
std::unique_ptr<HFMModel> _hfmModel;
|
std::unique_ptr<hfm::Model> _hfmModel;
|
||||||
QStringList _textures;
|
QStringList _textures;
|
||||||
QStringList _scripts;
|
QStringList _scripts;
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,35 +25,9 @@
|
||||||
#include <graphics/Geometry.h>
|
#include <graphics/Geometry.h>
|
||||||
#include <graphics/Material.h>
|
#include <graphics/Material.h>
|
||||||
|
|
||||||
// High Fidelity Model namespace
|
|
||||||
namespace hfm {
|
|
||||||
class Blendshape;
|
|
||||||
struct JointShapeInfo;
|
|
||||||
class Joint;
|
|
||||||
class Cluster;
|
|
||||||
class Texture;
|
|
||||||
class MeshPart;
|
|
||||||
class Material;
|
|
||||||
class Mesh;
|
|
||||||
class AnimationFrame;
|
|
||||||
class Light;
|
|
||||||
class Model;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef hfm::Blendshape HFMBlendshape;
|
|
||||||
typedef hfm::JointShapeInfo HFMJointShapeInfo;
|
|
||||||
typedef hfm::Joint HFMJoint;
|
|
||||||
typedef hfm::Cluster HFMCluster;
|
|
||||||
typedef hfm::Texture HFMTexture;
|
|
||||||
typedef hfm::MeshPart HFMMeshPart;
|
|
||||||
typedef hfm::Material HFMMaterial;
|
|
||||||
typedef hfm::Mesh HFMMesh;
|
|
||||||
typedef hfm::AnimationFrame HFMAnimationFrame;
|
|
||||||
typedef hfm::Light HFMLight;
|
|
||||||
typedef hfm::Model HFMModel;
|
|
||||||
|
|
||||||
const int MAX_NUM_PIXELS_FOR_FBX_TEXTURE = 2048 * 2048;
|
const int MAX_NUM_PIXELS_FOR_FBX_TEXTURE = 2048 * 2048;
|
||||||
|
|
||||||
|
// High Fidelity Model namespace
|
||||||
namespace hfm {
|
namespace hfm {
|
||||||
|
|
||||||
/// A single blendshape.
|
/// A single blendshape.
|
||||||
|
@ -350,6 +324,18 @@ public:
|
||||||
QHash<QString, size_t> texcoordSetMap;
|
QHash<QString, size_t> texcoordSetMap;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef hfm::Blendshape HFMBlendshape;
|
||||||
|
typedef hfm::JointShapeInfo HFMJointShapeInfo;
|
||||||
|
typedef hfm::Joint HFMJoint;
|
||||||
|
typedef hfm::Cluster HFMCluster;
|
||||||
|
typedef hfm::Texture HFMTexture;
|
||||||
|
typedef hfm::MeshPart HFMMeshPart;
|
||||||
|
typedef hfm::Material HFMMaterial;
|
||||||
|
typedef hfm::Mesh HFMMesh;
|
||||||
|
typedef hfm::AnimationFrame HFMAnimationFrame;
|
||||||
|
typedef hfm::Light HFMLight;
|
||||||
|
typedef hfm::Model HFMModel;
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(HFMAnimationFrame)
|
Q_DECLARE_METATYPE(HFMAnimationFrame)
|
||||||
Q_DECLARE_METATYPE(QVector<HFMAnimationFrame>)
|
Q_DECLARE_METATYPE(QVector<HFMAnimationFrame>)
|
||||||
Q_DECLARE_METATYPE(HFMModel)
|
Q_DECLARE_METATYPE(HFMModel)
|
||||||
|
|
Loading…
Reference in a new issue