MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / main

Function main

Simulator/main.cpp:22–42  ·  view source on GitHub ↗

main

Source from the content-addressed store, hash-verified

20
21// main
22int main( int argc, char **argv )
23{
24 REPORT_MEMORY_LEAKS;
25 base = new SimulatorBase();
26 base->init(argc, argv, "SPlisHSPlasH");
27
28 if (base->getUseGUI())
29 {
30 if (base->isStaticScene())
31 gui = new Simulator_GUI_imgui(base);
32 else
33 gui = new PBD_Simulator_GUI_imgui(base, ((PBDBoundarySimulator*)base->getBoundarySimulator())->getPBDWrapper());
34 base->setGui(gui);
35 }
36 base->run();
37
38 delete base;
39 delete gui;
40
41 return 0;
42}
43

Callers

nothing calls this directly

Calls 7

getUseGUIMethod · 0.80
isStaticSceneMethod · 0.80
getPBDWrapperMethod · 0.80
getBoundarySimulatorMethod · 0.80
setGuiMethod · 0.80
initMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected