Skip to content

Commit a3a208f

Browse files
committed
Base framework for starting up the client application.
1 parent 83ff6c3 commit a3a208f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

Source/Client/Main.cpp

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1+
#include "Frontend.h"
2+
#include "OctaneGUI/OctaneGUI.h"
3+
14
#include <cstdio>
25

36
int main(int argc, char** argv)
47
{
58
(void)argc;
69
(void)argv;
710

8-
printf("Hello Snippet\n");
9-
return 0;
11+
const char* Json = R"({
12+
"Theme": "Resources/Themes/Dark.json",
13+
"Windows": {
14+
"Main": {"Title": "Snippet", "Width": 1280, "Height": 720,
15+
"MenuBar": {},
16+
"Body": {"Controls": []}
17+
}
18+
}
19+
})";
20+
21+
OctaneGUI::Application Application;
22+
Frontend::Initialize(Application);
23+
24+
std::unordered_map<std::string, OctaneGUI::ControlList> Controls;
25+
Application.Initialize(Json, Controls);
26+
27+
return Application.Run();
1028
}

0 commit comments

Comments
 (0)