diff options
author | 2024-03-16 19:14:13 +0100 | |
---|---|---|
committer | 2024-03-16 19:14:13 +0100 | |
commit | 28a27f08edccd53e06ad693e63b0a62dae921da5 (patch) | |
tree | d2a2f51ebc9fddd38771abfbd567522396763468 /examples/custom_shader/src/main.rs | |
parent | 0a24611ccdb9402f89c88fd5f567b9d26e3533c2 (diff) | |
download | iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.gz iced-28a27f08edccd53e06ad693e63b0a62dae921da5.tar.bz2 iced-28a27f08edccd53e06ad693e63b0a62dae921da5.zip |
Remove `sandbox` by making `application` more generic :tada:
Diffstat (limited to 'examples/custom_shader/src/main.rs')
-rw-r--r-- | examples/custom_shader/src/main.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs index 341b77b6..4457a15a 100644 --- a/examples/custom_shader/src/main.rs +++ b/examples/custom_shader/src/main.rs @@ -9,9 +9,13 @@ use iced::window; use iced::{Alignment, Color, Element, Length, Subscription}; fn main() -> iced::Result { - iced::sandbox("Custom Shader - Iced", IcedCubes::update, IcedCubes::view) - .subscription(IcedCubes::subscription) - .run() + iced::application( + "Custom Shader - Iced", + IcedCubes::update, + IcedCubes::view, + ) + .subscription(IcedCubes::subscription) + .run() } struct IcedCubes { |