All pastes #31023 Raw Edit

Unnamed

public cpp v1 · immutable
#31023 ·published 2005-11-25 00:18 UTC
rendered paste body
#include "GameManager.h"#include "CurrState.h"#include "introstate.h"#include "Ogre.h"using namespace Ogre;#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32#define WIN32_LEAN_AND_MEAN#include "windows.h"#endif#ifdef __cplusplusextern "C" {#endif#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )#elseint main(int argc, char **argv)#endif{    // Create application object    GameManager* game = new GameManager();    try {		game->start(CurrState::getInstance());    } catch( Exception& e ) {#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32	MessageBox(NULL,(char*)e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);#else        std::cerr << "An exception has occured: " << e.getFullDescription();#endif    }	delete game;    	return 0;}#ifdef __cplusplus}#endif