| 156 | } |
| 157 | |
| 158 | void sample_engine_performance::on_update(const app_update_event & e) |
| 159 | { |
| 160 | int width, height; |
| 161 | glfwGetWindowSize(window, &width, &height); |
| 162 | flycam.update(e.timestep_ms); |
| 163 | shaderMonitor->handle_recompile(); |
| 164 | |
| 165 | // NEW: Update all objects - calls on_update() on each enabled object |
| 166 | scene.update(e.timestep_ms / 1000.0f); |
| 167 | } |
| 168 | |
| 169 | void sample_engine_performance::on_draw() |
| 170 | { |
nothing calls this directly
no test coverage detected