예제 #1
0
파일: Tetris3D.cpp 프로젝트: prodk/Tetris3D
// Program entry point.
int main(int argc, char **argv)
{
	GameApp game;
	game.manageGame();

	return 0;
}
예제 #2
0
void ToggleDebugMessage::process()
{
	GameApp* pGame = dynamic_cast<GameApp*>(gpGame);
	if (pGame != NULL)
	{
		pGame->toggleDebugMode();
	}
}
예제 #3
0
파일: Main.cpp 프로젝트: Blarget2/gamejam
int main(int argc, char** argv) {
	GameApp App;

	App.Init();
	App.Run();

	return 0;
}
예제 #4
0
void GiveUnitPathMessage::process()
{
	GameApp* pGame = dynamic_cast<GameApp*>(gpGame);
	if (pGame != NULL)
	{
		pGame->updateUnitPath(mPath, mReversed);
	}
}
예제 #5
0
파일: winmain.cpp 프로젝트: kos2399/sonic
INT WINAPI _tWinMain(HINSTANCE hInst,
					 HINSTANCE,
					 LPTSTR, INT)
{
	GameApp app;

	app.Setup(hInst);

	return app.Run();
}
예제 #6
0
파일: main.cpp 프로젝트: ExShini/firstPro
int main()
{

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

    cout << "Finish gameApp" << endl;
    return 0;
}
예제 #7
0
파일: GameApp.cpp 프로젝트: dzw/kylin001v
	KVOID DoWork(KCHAR *argv)
	{
		GameApp app;
#ifdef _DEBUG
		if (app.Initialize("OGRE Sample ...",MAKEINTRESOURCE(IDR_MAINFRAME)))
#else
		if (app.Initialize("ÆæÃÅ",MAKEINTRESOURCE(IDR_MAINFRAME)))
#endif // _DEBUG
		{
			app.Entrance(argv);
			app.Run();
		}
	}
예제 #8
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;
}
예제 #9
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;
}
예제 #10
0
int main()
{
	//TODO: faire un systeme de "logs"

    GameApp app;
	GameLogic game;

	app.initialize();
	game.initialize();

	app.startLoop();

	game.terminate();
	app.terminate();

    return 0;
}
예제 #11
0
int main(int argc, char *argv[])
#endif
{
	try
	{
		if (!theApp.init())
		{
			theApp.exit();
			return -1;
		}

		theApp.run();
	}
	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
	}
	catch (VException &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
	}

	theApp.exit();
	
	return 0;
}