From 7301a02dcebea079b46503b8c31bcd9514a118c6 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Fri, 23 Nov 2018 18:04:30 +0900 Subject: [PATCH] [glium-examples] custom-textures: Add messages --- imgui-glium-examples/examples/custom_textures.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imgui-glium-examples/examples/custom_textures.rs b/imgui-glium-examples/examples/custom_textures.rs index 383fdcf..6adc53a 100644 --- a/imgui-glium-examples/examples/custom_textures.rs +++ b/imgui-glium-examples/examples/custom_textures.rs @@ -77,14 +77,16 @@ impl CustomTexturesApp { fn show_textures(&self, ui: &Ui) { ui.window(im_str!("Hello textures")) - .size((300.0, 400.0), ImGuiCond::FirstUseEver) + .size((400.0, 600.0), ImGuiCond::FirstUseEver) .build(|| { ui.text(im_str!("Hello textures!")); if let Some(my_texture_id) = self.my_texture_id { + ui.text("Some generated texture"); ui.image(my_texture_id, (100.0, 100.0)).build(); } if let Some(lenna) = &self.lenna { + ui.text("Say hello to Lenna.jpg"); lenna.show(ui); } });