Nui Engine
A game engine framework
Loading...
Searching...
No Matches
EntryPoint.h
1#pragma once
2
3#pragma warning(push)
4#pragma warning(disable : 4005)
5#define NOMINMAX
6#define NOMCX
7#define NOSERVICE
8#define NOHELP
9#pragma warning(pop)
10
11#include <Core/Engine/Engine.h>
12#include <Core/Utils/Singleton.h>
13
14int WINAPI wWinMain(
15 _In_ HINSTANCE hInstance,
16 _In_opt_ HINSTANCE hPrevInstance,
17 _In_ LPWSTR lpCmdLine,
18 _In_ int nShowCmd
19)
20{
21 try
22 {
25 }
26 catch (const std::exception& e)
27 {
28 NUI_LOG(Exception, Main, e.what());
29 }
30
31 return 0;
32}
static void Destroy() noexcept
Destroy the singleton instance.
Definition Singleton.h:25
static T & Get() noexcept
Get the singleton instance.
Definition Singleton.h:17