| 39 | void PiccoloEngine::clear() {} |
| 40 | |
| 41 | void PiccoloEngine::run() |
| 42 | { |
| 43 | std::shared_ptr<WindowSystem> window_system = g_runtime_global_context.m_window_system; |
| 44 | ASSERT(window_system); |
| 45 | |
| 46 | while (!window_system->shouldClose()) |
| 47 | { |
| 48 | const float delta_time = calculateDeltaTime(); |
| 49 | tickOneFrame(delta_time); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | float PiccoloEngine::calculateDeltaTime() |
| 54 | { |
nothing calls this directly
no test coverage detected