예제 #1
0
파일: main.cpp 프로젝트: ExShini/firstPro
int main(int argc, char *argv[])
{
    Q_UNUSED(argc);
    Q_UNUSED(argv);

    cout << "Create gameApp" << endl;
    GameApp * game = new GameApp();
    cout << "Start gameApp" << endl;
    game->startGame();

    cout << "Finish gameApp" << endl;
    return 0;
}
예제 #2
0
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
{
	try {
		// Set up to support Chinese path
		setlocale(LC_ALL,"Chinese-simplified"); 
		GameApp *app = GameApp::getSingletonPtr();
		app->startGame();

	} catch( Ogre::Exception& e ) {
		MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", 
							 MB_OK | MB_ICONERROR | MB_TASKMODAL);
	}

	return 0;
}