MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / main

Function main

engine/source/editor/source/main.cpp:15–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#define PICCOLO_STR(s) #s
14
15int main(int argc, char** argv)
16{
17 std::filesystem::path executable_path(argv[0]);
18 std::filesystem::path config_file_path = executable_path.parent_path() / "PiccoloEditor.ini";
19
20 Piccolo::PiccoloEngine* engine = new Piccolo::PiccoloEngine();
21
22 engine->startEngine(config_file_path.generic_string());
23 engine->initialize();
24
25 Piccolo::PiccoloEditor* editor = new Piccolo::PiccoloEditor();
26 editor->initialize(engine);
27
28 editor->run();
29
30 editor->clear();
31
32 engine->clear();
33 engine->shutdownEngine();
34
35 return 0;
36}

Callers

nothing calls this directly

Calls 5

startEngineMethod · 0.80
shutdownEngineMethod · 0.80
initializeMethod · 0.45
runMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected