mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +00:00
imgui-winit-support: Fix use of update_delta_time in example doc
This commit is contained in:
parent
b08f3bfe29
commit
055c16b4e2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user