From afdf3e799a7610444208c9568a7cf7531d0c2ef3 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 10 Nov 2021 23:56:52 -0300 Subject: Add `env_logger` to `game_of_life` --- examples/game_of_life/Cargo.toml | 1 + examples/game_of_life/src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'examples') 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..dcf1ced5 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -18,6 +18,10 @@ 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 { -- cgit From e31566d430093fb084da2e7f4f4ed1b66326edef Mon Sep 17 00:00:00 2001 From: Richard Date: Thu, 11 Nov 2021 01:10:47 -0300 Subject: Improve shader version selection --- examples/game_of_life/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index dcf1ced5..ab8b80e4 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -18,9 +18,7 @@ use preset::Preset; use std::time::{Duration, Instant}; pub fn main() -> iced::Result { - env_logger::builder() - .format_timestamp(None) - .init(); + env_logger::builder().format_timestamp(None).init(); GameOfLife::run(Settings { antialiasing: true, -- cgit From cc3cf4dfc2acd590b4e2005ccc86afc63355e1a4 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 31 Oct 2021 14:10:00 -0300 Subject: Export `iced_winit::conversion` in `iced_glutin` --- examples/integration_opengl/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs index 551aba67..21f6eb25 100644 --- a/examples/integration_opengl/src/main.rs +++ b/examples/integration_opengl/src/main.rs @@ -6,14 +6,14 @@ 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(); -- cgit From 01f67a2c1f36a90e45f0ff21266bc41152f0c8d5 Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 1 Nov 2021 18:37:53 -0300 Subject: Export `glow` in `iced_glow` --- examples/integration_opengl/Cargo.toml | 1 - examples/integration_opengl/src/main.rs | 1 - examples/integration_opengl/src/scene.rs | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) (limited to 'examples') 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 21f6eb25..1007b90f 100644 --- a/examples/integration_opengl/src/main.rs +++ b/examples/integration_opengl/src/main.rs @@ -4,7 +4,6 @@ mod scene; use controls::Controls; use scene::Scene; -use glow; use glow::*; use glutin::dpi::PhysicalPosition; use glutin::event::{Event, ModifiersState, WindowEvent}; 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 { -- cgit