1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

Add time as input to emigui to enable animations

This commit is contained in:
Emil Ernerfeldt
2020-04-21 14:46:42 +02:00
parent 11cd1bdca3
commit 0ed578341b
4 changed files with 18 additions and 0 deletions

View File

@@ -81,6 +81,7 @@
mouse_pos: g_mouse_pos,
screen_size: { x: window.innerWidth, y: window.innerHeight },
pixels_per_point: pixels_per_point(),
time: window.performance.now() / 1000.0,
};
}