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

Add support for text input in emilib and glium.

Add input inspectors
This commit is contained in:
Emil Ernerfeldt
2020-04-28 23:05:22 +02:00
parent 41eea6cd86
commit 1e685d1cb0
5 changed files with 144 additions and 50 deletions

View File

@@ -42,6 +42,7 @@ impl State {
fn run(&mut self, raw_input: RawInput) -> Result<Output, JsValue> {
let everything_start = now_sec();
let pixels_per_point = raw_input.pixels_per_point;
self.emigui.begin_frame(raw_input);
let mut region = self.emigui.background_region();
@@ -98,7 +99,7 @@ impl State {
bg_color,
batches,
self.emigui.texture(),
raw_input.pixels_per_point,
pixels_per_point,
)?;
self.frame_times.push_back(now_sec() - everything_start);