Example #1
0
/**************************************************************************//**
 * @author Daniel Andrus
 * 
 * @par Description: 
 * This function primarly passes control to the Pong class.
 * 
 * 
 * @param[in]      argc - Number of aurments from the command line
 * @param[out]     argv - An array of command line aurgments
 * 
 * @returns 0 program ran successfully.
 *****************************************************************************/
int main( int argc, char *argv[] )
{
	// Initialize program's core class
	Pong pong;

	// Run everything through the Pong class
	return pong.run( argc, argv);
}
Example #2
0
int main(){

	Pong pong;



	pong.run();

}
Example #3
0
int main()
#endif
{
   try
   {
      Pong game; // create a Pong object
      game.run(); // start the Pong game
   } // end try
   catch ( runtime_error &error )
   {
      #if OGRE_PLATFORM==PLATFORM_WIN32 || OGRE_PLATFORM==OGRE_PLATFORM_WIN32
      MessageBoxA( NULL, error.what(), "Exception Thrown!",
         MB_OK | MB_ICONERROR | MB_TASKMODAL );
      #else
      cerr << "Exception Thrown: " << error.what() << endl;
      #endif
   } // end catch
} // end main