summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/assimp/code/3DSExporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/assimp/code/3DSExporter.h')
-rw-r--r--src/3rdparty/assimp/code/3DSExporter.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/3rdparty/assimp/code/3DSExporter.h b/src/3rdparty/assimp/code/3DSExporter.h
index 321539cff..fc02e2390 100644
--- a/src/3rdparty/assimp/code/3DSExporter.h
+++ b/src/3rdparty/assimp/code/3DSExporter.h
@@ -2,7 +2,8 @@
Open Asset Import Library (assimp)
----------------------------------------------------------------------
-Copyright (c) 2006-2016, assimp team
+Copyright (c) 2006-2017, assimp team
+
All rights reserved.
Redistribution and use of this software in source and binary forms,
@@ -48,7 +49,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <memory>
#include "StreamWriter.h"
-#include "./../include/assimp/material.h"
+#include <assimp/material.h>
struct aiScene;
struct aiNode;
@@ -59,30 +60,28 @@ namespace Assimp
{
// ------------------------------------------------------------------------------------------------
-/** Helper class to export a given scene to a 3DS file. */
+/**
+ * @brief Helper class to export a given scene to a 3DS file.
+ */
// ------------------------------------------------------------------------------------------------
-class Discreet3DSExporter
-{
+class Discreet3DSExporter {
public:
Discreet3DSExporter(std::shared_ptr<IOStream> outfile, const aiScene* pScene);
+ ~Discreet3DSExporter();
private:
-
void WriteMeshes();
void WriteMaterials();
void WriteTexture(const aiMaterial& mat, aiTextureType type, uint16_t chunk_flags);
-
void WriteFaceMaterialChunk(const aiMesh& mesh);
-
int WriteHierarchy(const aiNode& node, int level, int sibling_level);
-
void WriteString(const std::string& s);
void WriteString(const aiString& s);
void WriteColor(const aiColor3D& color);
void WritePercentChunk(float f);
+ void WritePercentChunk(double f);
private:
-
const aiScene* const scene;
StreamWriterLE writer;
@@ -93,6 +92,6 @@ private:
};
-}
+} // Namespace Assimp
-#endif
+#endif // AI_3DSEXPORTER_H_INC