Magic_Game/samples/Box2DSample/main.cpp

24 lines
408 B
C++
Raw Normal View History

2019-02-03 22:38:39 +08:00
// Copyright (C) 2019 Nomango
#include "MainScene.h"
2019-02-03 22:38:39 +08:00
int WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
2019-02-03 22:38:39 +08:00
{
try
{
Application app;
Options options(L"Box2D Demo");
app.Init(options);
2019-02-03 22:38:39 +08:00
MainScenePtr scene = new MainScene;
2019-02-03 22:38:39 +08:00
app.EnterScene(scene);
app.Run();
}
catch (std::exception& e)
{
2019-03-10 13:44:02 +08:00
::MessageBoxA(nullptr, e.what(), "An exception has occurred!", MB_ICONERROR | MB_OK);
2019-02-03 22:38:39 +08:00
}
return 0;
}