imgui-winit-support: Fix use of update_delta_time in example doc

This commit is contained in:
Marijn Suijten 2020-11-12 23:38:03 +01:00
parent b08f3bfe29
commit 055c16b4e2

View File

@ -61,7 +61,9 @@
//! match event {
//! Event::NewEvents(_) => {
//! // other application-specific logic
//! last_frame = imgui.io_mut().update_delta_time(last_frame);
//! let now = Instant::now();
//! imgui.io_mut().update_delta_time(now - last_frame);
//! last_frame = now;
//! },
//! Event::MainEventsCleared => {
//! // other application-specific logic