Пример #1
0
int main(int argc, char** argv)
{
	QApplication app( argc, argv );

	// create a new instance of SampleApp
	SampleApp mainWindow;	
	mainWindow.show();

	// Enters the main event loop and waits until exit() is called 
	// or the main widget is destroyed, and Returns the value that 
	// was set via to exit() (which is 0 if exit() is called via quit()). 
	return app.exec();
}
Пример #2
0
int main() {
	// SFML guard
	// See http://sfgui.sfml-dev.de/forum/topic52-crash-on-close.html for more info.
	sfg::SFGUI sfgui;

	// Make sure app is destroyed before the guard.
	{
		SampleApp app;
		app.Run();
	}

	return 0;
}
Пример #3
0
// ----------------------------------------------------------------------------
// Main function, just boots the application object
// ----------------------------------------------------------------------------
int main(int argc, char** argv)
{
	try
	{
		SampleApp app;
		app.go();
	}
	catch (Ogre::Exception &e)
	{
		std::cerr << "An exception has occured: " << e.getFullDescription();

		return -1;
	}

	return 0;
}
Пример #4
0
int main(int argc, char **argv)
{
    // Create application object
    SampleApp app;

    try
    {
        app.go();
    }
    catch ( Ogre::Exception& e )
    {
        std::cerr << "An exception has occured: " << e.getFullDescription();
    }

    return 0;
}
Пример #5
0
        int main(int argc, char *argv[])
#endif
        {
            // Create application object
            SampleApp app;

            try {
                app.go();
            } catch( Ogre::Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
                MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
                std::cerr << "An exception has occured: " <<
                    e.getFullDescription().c_str() << std::endl;
#endif
            }

            return 0;
        }
Пример #6
0
int main(int argc, const char * argv[])
{
  try {
    // OpenNI を初期化する
    openni::OpenNI::initialize();
    
    SampleApp app;
    app.initialize();
    while ( 1 ) {
      app.update();
      
      int key = cv::waitKey( 10 );
      if ( key == 'q' ) {
        break;
      }
    }
  }
  catch ( std::exception& ) {
    std::cout << openni::OpenNI::getExtendedError() << std::endl;
  }
  
  return 0;
}
Пример #7
0
int main() {
	SampleApp app;
	app.Run();

	return 0;
}