diff options
author | 2022-01-26 13:54:21 +0700 | |
---|---|---|
committer | 2022-01-26 13:54:21 +0700 | |
commit | 9b3cab82ef3bbc5b8129ac3bacec4011229f0fbc (patch) | |
tree | bc9fbd32c8c589bc56d2458bb77bc8293ba8a6bd /examples | |
parent | 4aa943cbc63230dfcb995c469ceec9f74e6132e1 (diff) | |
parent | 522368e8af6947ea0676f62bf1ae5f68acb2058d (diff) | |
download | iced-9b3cab82ef3bbc5b8129ac3bacec4011229f0fbc.tar.gz iced-9b3cab82ef3bbc5b8129ac3bacec4011229f0fbc.tar.bz2 iced-9b3cab82ef3bbc5b8129ac3bacec4011229f0fbc.zip |
Merge pull request #1160 from derezzedex/dev/arm-support
feat: add support to ARM devices (and older hardware)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/game_of_life/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/game_of_life/src/main.rs | 2 | ||||
-rw-r--r-- | examples/integration_opengl/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/integration_opengl/src/main.rs | 11 | ||||
-rw-r--r-- | examples/integration_opengl/src/scene.rs | 1 |
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 { |