42 lines
598 B
C++
42 lines
598 B
C++
// Copyright (C) 2019 Nomango
|
|
|
|
#include "MainScene.h"
|
|
|
|
using namespace kiwano;
|
|
|
|
class ImGuiApp
|
|
: public Application
|
|
{
|
|
public:
|
|
ImGuiApp()
|
|
{
|
|
// Ìí¼Ó ImGui ×é¼þ
|
|
Use(&ImGuiView::Instance());
|
|
|
|
// ³õʼ»¯
|
|
Options options(L"ImGui Demo", 1280, 800);
|
|
|
|
Init(options);
|
|
}
|
|
|
|
void OnStart() override
|
|
{
|
|
MainScenePtr scene = new MainScene;
|
|
EnterScene(scene);
|
|
}
|
|
};
|
|
|
|
int WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
|
|
{
|
|
try
|
|
{
|
|
ImGuiApp app;
|
|
app.Run();
|
|
}
|
|
catch (std::exception& e)
|
|
{
|
|
::MessageBoxA(nullptr, e.what(), "An exception has occurred!", MB_ICONERROR | MB_OK);
|
|
}
|
|
return 0;
|
|
}
|