mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:56:29 +02:00
49 lines
No EOL
1,010 B
C++
49 lines
No EOL
1,010 B
C++
//
|
|
// ModelPackager.h
|
|
//
|
|
//
|
|
// Created by Clement on 3/9/15.
|
|
// Copyright 2015 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_ModelPackager_h
|
|
#define hifi_ModelPackager_h
|
|
|
|
#include <QFileInfo>
|
|
#include <QVariantHash>
|
|
|
|
#include "ui/ModelsBrowser.h"
|
|
|
|
class ModelPackager : public QObject {
|
|
public:
|
|
static bool package();
|
|
|
|
private:
|
|
bool selectModel();
|
|
|
|
bool loadModel();
|
|
bool editProperties();
|
|
bool zipModel();
|
|
|
|
void populateBasicMapping(QVariantHash& mapping, QString filename, const FBXGeometry& geometry);
|
|
|
|
void listTextures();
|
|
bool copyTextures(const QString& oldDir, const QDir& newDir);
|
|
|
|
QFileInfo _modelFile;
|
|
QFileInfo _fbxInfo;
|
|
FSTReader::ModelType _modelType;
|
|
QString _texDir;
|
|
|
|
QVariantHash _mapping;
|
|
FBXGeometry _geometry;
|
|
QStringList _textures;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // hifi_ModelPackager_h
|