-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudioSlab.cpp
More file actions
47 lines (33 loc) · 830 Bytes
/
StudioSlab.cpp
File metadata and controls
47 lines (33 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// Created by joao on 11/05/24.
//
#include "StudioSlab.h"
#include "Core/SlabCore.h"
#include "Graphics/SlabGraphics.h"
#include "Math/SlabMath.h"
#include "CrashPad.h"
namespace Slab {
bool Started = false;
void Startup() {
if(IsStarted()) return;
Core::Startup();
Math::Startup();
Graphics::Startup();
Started = true;
}
void Finish() {
Core::Finish();
Math::Finish();
Graphics::Finish();
}
bool IsStarted() {
return Started;
}
TPointer<Core::FBackend> CreatePlatform(Core::FBackendIdentifier platform) {
Core::FBackendManager::Startup(platform);
return Core::FBackendManager::GetBackend();
}
int Run(FApplication &Application) {
return SafetyNet::Jump(Application);
}
}