main.cpp 481 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. #include <QtGui/QApplication>
  5. #include "qglgameengine.h"
  6. #include <QDebug>
  7. int main(int argc, char *argv[])
  8. {
  9. qDebug("main");
  10. QApplication a(argc, argv);
  11. QGlGameEngine widget;
  12. #ifndef Q_OS_WIN
  13. widget.showFullScreen();
  14. #else
  15. widget.setMinimumSize(640,360);
  16. widget.show();
  17. #endif
  18. widget.raise();
  19. int rval = a.exec();
  20. qDebug("main ret %d", rval);
  21. return rval;
  22. }