#include "FrameListener.h"
#pragma comment(lib, "FrameWork.lib")
using namespace fw;
#define SHOW_CONSOLE
#ifndef SHOW_CONSOLE
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
#else
int main()
#endif
{
srand((uint32)time(nullptr));
SplashScreen::SplashScreenInfo splashInfo("skel.bmp", 500, 120, true, 5);
System* pSystem = new System(RenderMode::Windowed);
bool bSuccess = pSystem->Initialize(DXVersion::D3D_10, splashInfo);
if (bSuccess)
{
try
{
D3DRenderer* pRenderer = pSystem->GetCurrentRenderer();
ApplicationFrameListener framelistener(pRenderer);
framelistener.Initialize();
pSystem->Run(&framelistener);
}
catch (const FrameWorkException& excp)
{
std::cout << excp.What() << std::endl;
}
}
pSystem->Shutdown();
SAFE_DELETE(pSystem);
return 0;
}