Creating fileName.mtl file instead of fileName.obj.mtl
authorAndrej <Andrej@HOMEWIN10>
Tue, 16 May 2017 13:34:50 +0000 (15:34 +0200)
committerAndrej <Andrej@HOMEWIN10>
Tue, 16 May 2017 13:34:50 +0000 (15:34 +0200)
code/ObjExporter.cpp
samples/SimpleOpenGL/Debug/vc140.idb [new file with mode: 0644]
samples/SimpleOpenGL/Debug/vc140.pdb [new file with mode: 0644]
samples/SimpleOpenGL/SimpleOpenGL.VC.db [new file with mode: 0644]
samples/SimpleOpenGL/SimpleOpenGL.vcxproj.user [new file with mode: 0644]
samples/SimpleOpenGL/UpgradeLog.htm [new file with mode: 0644]
samples/SimpleOpenGL/UpgradeLog2.htm [new file with mode: 0644]

index 564de1c..c252cf3 100644 (file)
@@ -124,6 +124,11 @@ std::string ObjExporter :: GetMaterialLibName()
 // ------------------------------------------------------------------------------------------------
 std::string ObjExporter :: GetMaterialLibFileName()
 {
+    // Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl
+    size_t lastdot = filename.find_last_of(".");
+    if (lastdot != std::string::npos)
+        filename = filename.substr(0, lastdot);
+        
     return filename + MaterialExt;
 }
 
diff --git a/samples/SimpleOpenGL/Debug/vc140.idb b/samples/SimpleOpenGL/Debug/vc140.idb
new file mode 100644 (file)
index 0000000..29cc472
Binary files /dev/null and b/samples/SimpleOpenGL/Debug/vc140.idb differ
diff --git a/samples/SimpleOpenGL/Debug/vc140.pdb b/samples/SimpleOpenGL/Debug/vc140.pdb
new file mode 100644 (file)
index 0000000..39a9ed3
Binary files /dev/null and b/samples/SimpleOpenGL/Debug/vc140.pdb differ
diff --git a/samples/SimpleOpenGL/SimpleOpenGL.VC.db b/samples/SimpleOpenGL/SimpleOpenGL.VC.db
new file mode 100644 (file)
index 0000000..1c7c98b
Binary files /dev/null and b/samples/SimpleOpenGL/SimpleOpenGL.VC.db differ
diff --git a/samples/SimpleOpenGL/SimpleOpenGL.vcxproj.user b/samples/SimpleOpenGL/SimpleOpenGL.vcxproj.user
new file mode 100644 (file)
index 0000000..abe8dd8
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup />
+</Project>
\ No newline at end of file
diff --git a/samples/SimpleOpenGL/UpgradeLog.htm b/samples/SimpleOpenGL/UpgradeLog.htm
new file mode 100644 (file)
index 0000000..3282796
Binary files /dev/null and b/samples/SimpleOpenGL/UpgradeLog.htm differ
diff --git a/samples/SimpleOpenGL/UpgradeLog2.htm b/samples/SimpleOpenGL/UpgradeLog2.htm
new file mode 100644 (file)
index 0000000..0181993
Binary files /dev/null and b/samples/SimpleOpenGL/UpgradeLog2.htm differ