SpiecsEngine
 
Loading...
Searching...
No Matches
EntryPoint.h
Go to the documentation of this file.
1/**
2* @file EntryPoint.h.
3* @brief EntryPoint Definitions.
4* @author Spices.
5*/
6#pragma once
7
8#include "Core/Core.h"
9#include "Core/Application.h"
10#include "Core/Memory/MemoryEntry.h"
11
12/**
13* @brief Main Function.
14*/
15int main() {
16
18
19 try
20 {
21 /**
22 * @brief Create Application
23 */
24 auto engine = Spices::Application();
25
26 /**
27 * @brief Application Run.
28 */
29 engine.Run();
30 }
31 catch (const std::exception& ex)
32 {
33 SPICES_CORE_ERROR(ex.what())
34
35 return EXIT_FAILURE;
36 }
37
39
40 return EXIT_SUCCESS;
41}
int main()
Main Function.
Definition EntryPoint.h:15
#define PROCESS_INSTANCE_ENTRY
Macros of modify Process instance state.
#define PROCESS_INSTANCE_EXIT
#define SPICES_PROFILE_ZONE
Application()
Constructor Function.
static void Run()
Run Our World.
Application Class. Our Engine Start here.
Definition Application.h:20
World Class. This class defines the basic behaves of World. When we create an new world,...
Definition World.h:41
std::shared_ptr< World > CreateWorld()
extern WorldCreation definition in Game.
Definition EntryPoint.cpp:6