Entry point of any ImGui application. Use it to start the application loop. @param app application instance to run
(final Application app)
| 132 | * @param app application instance to run |
| 133 | */ |
| 134 | public static void launch(final Application app) { |
| 135 | final Configuration config = new Configuration(); |
| 136 | app.configure(config); |
| 137 | app.window = (config.getBackend() == Backend.SDL) ? new WindowSdl() : new WindowGlfw(); |
| 138 | app.window.setOwner(app); |
| 139 | app.window.init(config); |
| 140 | app.preRun(); |
| 141 | app.window.run(); |
| 142 | app.postRun(); |
| 143 | app.window.dispose(); |
| 144 | } |
| 145 | } |