main
| 20 | |
| 21 | // main |
| 22 | int 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 |
nothing calls this directly
no test coverage detected