]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/decode_binobj.cxx
hla: Use HLADataElementIndices for HLAInteractionClass.
[simgear.git] / simgear / io / decode_binobj.cxx
index 302648bda8f67c5668483d5368d1918a5bcf710d..41880e1257a80c839a43911207835c47a4f0ff3a 100644 (file)
@@ -4,10 +4,16 @@
 
 #include <simgear/compiler.h>
 
+#ifndef _WIN32
 #include <unistd.h>
+#endif
+
 #include <iostream>
+#include <cstdlib>
+#include <cstdio>
 
 #include "sg_binobj.hxx"
+#include <simgear/debug/logstream.hxx>
 
 using std::cout;
 using std::endl;
@@ -20,6 +26,9 @@ int main( int argc, char **argv ) {
     if ( argc != 2 ) {
         cout << "Usage: " << argv[0] << " binary_obj_file" << endl;
     }
+    
+    
+    sglog().setLogLevels( SG_ALL, SG_ALERT );
 
     SGBinObject obj;
     bool result = obj.read_bin( argv[1] );
@@ -63,7 +72,7 @@ int main( int argc, char **argv ) {
     cout << "# geometry groups" << endl;
     cout << endl;
 
-    string material;
+    std::string material;
     int_list vertex_index;
     int_list normal_index;
     int_list tex_index;