Esempio n. 1
0
/*
  A very short main as we do everything else in classes.
*/
int main(int argc, char *argv[])
{
	CApp APP;

	if ( !APP.init(argc, argv) )
	{
		printf("init failed\n");
		return 1;
	}

	APP.run();
	APP.quit();

	return 0;
}
Esempio n. 2
0
/// @brief entry point
int main()
{
   // catch to properly free all gl resources
   try
   {
      CApp app;
      Log::msg("main loop start");
      app.run();
      Log::msg("main loop end");
   }
   catch(std::exception& e)
   {
      Log::err(e.what());
   }
}