Overte C++ Documentation
OBJWriter.h
1 //
2 // OBJWriter.h
3 // libraries/model-serializers/src
4 //
5 // Created by Seth Alves on 2017-1-27.
6 // Copyright 2017 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_objwriter_h
13 #define hifi_objwriter_h
14 
15 
16 #include <QString>
17 #include <QList>
18 #include <graphics/Geometry.h>
19 
20 using MeshPointer = std::shared_ptr<graphics::Mesh>;
21 
22 bool writeOBJToTextStream(QTextStream& out, QList<MeshPointer> meshes);
23 bool writeOBJToFile(QString path, QList<MeshPointer> meshes);
24 QString writeOBJToString(QList<MeshPointer> meshes);
25 
26 #endif // hifi_objwriter_h