X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fdecode_binobj.cxx;h=41880e1257a80c839a43911207835c47a4f0ff3a;hb=adb7db9229db1d869b254ac18f1471bed464c508;hp=2865db5700d5bad2d1ac269e9da85267f37cd92a;hpb=560c100484e3678770c9589e6067d627ec5554e5;p=simgear.git diff --git a/simgear/io/decode_binobj.cxx b/simgear/io/decode_binobj.cxx index 2865db57..41880e12 100644 --- a/simgear/io/decode_binobj.cxx +++ b/simgear/io/decode_binobj.cxx @@ -4,13 +4,19 @@ #include +#ifndef _WIN32 #include -#include STL_IOSTREAM +#endif + +#include +#include +#include #include "sg_binobj.hxx" +#include -SG_USING_STD(cout); -SG_USING_STD(endl); +using std::cout; +using std::endl; int main( int argc, char **argv ) { @@ -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;