00001 #include "Application.h" 00002 00003 #define WIN32_LEAN_AND_MEAN 00004 #include "windows.h" 00005 00006 int main(int argc, char **argv) 00007 { 00008 00009 while(Application::getSingleton()->getAppState() != SHUTDOWN) 00010 { 00011 try 00012 { 00013 Application::getSingleton()->run(); 00014 } 00015 catch(Ogre::Exception& exception) 00016 { 00017 fprintf(stderr, "An exception has occurred: %s\n", exception.what()); 00018 } 00019 } 00020 00021 return 0; 00022 }