goat3d

diff goatview/src/main.cc @ 82:70b7c41a4f17

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 11 May 2014 22:04:54 +0300
parents 9785847d52d4
children 21319e71117f
line diff
     1.1 --- a/goatview/src/main.cc	Thu May 08 23:05:29 2014 +0300
     1.2 +++ b/goatview/src/main.cc	Sun May 11 22:04:54 2014 +0300
     1.3 @@ -8,7 +8,8 @@
     1.4  	app.setOrganizationName("Mutant Stargoat");
     1.5  	app.setOrganizationDomain("mutantstargoat.com");
     1.6  	app.setApplicationName("GoatView");
     1.7 -	settings = new QSettings;
     1.8 +
     1.9 +	GoatView gview;
    1.10  
    1.11  	QCommandLineParser argparse;
    1.12  	argparse.addHelpOption();
    1.13 @@ -25,7 +26,7 @@
    1.14  		}
    1.15  		std::string fname = args.at(0).toStdString();
    1.16  		printf("loading scene file: %s ...\n", fname.c_str());
    1.17 -		if(!load_scene(fname.c_str())) {
    1.18 +		if(!gview.load_scene(fname.c_str())) {
    1.19  			fprintf(stderr, "failed to load scene: %s\n", fname.c_str());
    1.20  			return 1;
    1.21  		}
    1.22 @@ -43,7 +44,6 @@
    1.23  		}
    1.24  	}
    1.25  
    1.26 -	GoatView gview;
    1.27  	gview.show();
    1.28  
    1.29  	return app.exec();