25 #include <QtGui/QApplication>
35 #include <GLUT/glut.h>
40 #endif // MODULE_SPAMOD
43 int main(
int argc,
char** argv)
45 Q_INIT_RESOURCE(icones);
48 glutInit(&argc, argv);
49 #endif // MODULE_SPAMOD
53 QApplication appli(argc, argv);
56 bool fullscreen =
false;
59 for (
int i=1; i<argc; ++i )
61 if ( !strcmp(argv[i],
"-fullscreen" ) )
63 else if ( !strcmp( argv [ i ] ,
"-?") || !strcmp( argv [ i ] ,
"-h") )
65 else if ( !strcmp( argv [ i ] ,
"-i") )
67 if (i+1==argc) help=
true;
75 std::cout<<
"Usage : mokaQt [-h -?] [-fullscreen] [-i offfile1] ... [-i offfilek] "
76 "[mokafile1 ... mokafilek]"<<std::endl
77 <<
" -h -?: help command."<<std::endl
78 <<
" -fullscreen: put moka in fullscreen mode."<<std::endl
79 <<
" -i offfilei: import off file."<<std::endl
80 <<
" mokafilei: load moka file."<<std::endl;
84 if ( fullscreen ) moka . showFullScreen ( ) ;