summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/game_of_life/Cargo.toml1
-rw-r--r--examples/game_of_life/src/main.rs2
-rw-r--r--examples/integration_opengl/Cargo.toml1
-rw-r--r--examples/integration_opengl/src/main.rs11
-rw-r--r--examples/integration_opengl/src/scene.rs1
5 files changed, 9 insertions, 7 deletions
diff --git a/examples/game_of_life/Cargo.toml b/examples/game_of_life/Cargo.toml
index ffd2f19e..9ee307ac 100644
--- a/examples/game_of_life/Cargo.toml
+++ b/examples/game_of_life/Cargo.toml
@@ -10,3 +10,4 @@ iced = { path = "../..", features = ["canvas", "tokio", "debug"] }
tokio = { version = "1.0", features = ["sync"] }
itertools = "0.9"
rustc-hash = "1.1"
+env_logger = "0.9"
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index 50112618..ab8b80e4 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -18,6 +18,8 @@ use preset::Preset;
use std::time::{Duration, Instant};
pub fn main() -> iced::Result {
+ env_logger::builder().format_timestamp(None).init();
+
GameOfLife::run(Settings {
antialiasing: true,
window: window::Settings {
diff --git a/examples/integration_opengl/Cargo.toml b/examples/integration_opengl/Cargo.toml
index 0917f2ec..7fb1f2dd 100644
--- a/examples/integration_opengl/Cargo.toml
+++ b/examples/integration_opengl/Cargo.toml
@@ -10,4 +10,3 @@ iced_glutin = { path = "../../glutin" }
iced_glow = { path = "../../glow" }
iced_winit = { path = "../../winit" }
env_logger = "0.8"
-glow = "0.6"
diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs
index 551aba67..1007b90f 100644
--- a/examples/integration_opengl/src/main.rs
+++ b/examples/integration_opengl/src/main.rs
@@ -4,16 +4,15 @@ mod scene;
use controls::Controls;
use scene::Scene;
-use glow;
use glow::*;
+use glutin::dpi::PhysicalPosition;
+use glutin::event::{Event, ModifiersState, WindowEvent};
+use glutin::event_loop::ControlFlow;
+use iced_glow::glow;
use iced_glow::{Backend, Renderer, Settings, Viewport};
+use iced_glutin::conversion;
use iced_glutin::glutin;
-use iced_glutin::glutin::event::{Event, WindowEvent};
-use iced_glutin::glutin::event_loop::ControlFlow;
use iced_glutin::{program, Clipboard, Debug, Size};
-use iced_winit::conversion;
-use iced_winit::winit;
-use winit::{dpi::PhysicalPosition, event::ModifiersState};
pub fn main() {
env_logger::init();
diff --git a/examples/integration_opengl/src/scene.rs b/examples/integration_opengl/src/scene.rs
index a1245bf2..fc74b78a 100644
--- a/examples/integration_opengl/src/scene.rs
+++ b/examples/integration_opengl/src/scene.rs
@@ -1,4 +1,5 @@
use glow::*;
+use iced_glow::glow;
use iced_glow::Color;
pub struct Scene {