summaryrefslogtreecommitdiffstats
path: root/examples/custom_shader/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 14:16:38 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 14:19:12 +0100
commit54f44754eb216d4b2c08cd2a7c3582f1dc295205 (patch)
tree9f4a999ad92c62a1cf4df4559ff320fda83577c1 /examples/custom_shader/src/main.rs
parent7e1ef7d150aa3d4d05942eea2706348f20d61d64 (diff)
downloadiced-54f44754eb216d4b2c08cd2a7c3582f1dc295205.tar.gz
iced-54f44754eb216d4b2c08cd2a7c3582f1dc295205.tar.bz2
iced-54f44754eb216d4b2c08cd2a7c3582f1dc295205.zip
Move `Program` to `application` module
Diffstat (limited to 'examples/custom_shader/src/main.rs')
-rw-r--r--examples/custom_shader/src/main.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs
index 4457a15a..aa3dafe9 100644
--- a/examples/custom_shader/src/main.rs
+++ b/examples/custom_shader/src/main.rs
@@ -9,13 +9,9 @@ use iced::window;
use iced::{Alignment, Color, Element, Length, Subscription};
fn main() -> iced::Result {
- iced::application(
- "Custom Shader - Iced",
- IcedCubes::update,
- IcedCubes::view,
- )
- .subscription(IcedCubes::subscription)
- .run()
+ iced::program("Custom Shader - Iced", IcedCubes::update, IcedCubes::view)
+ .subscription(IcedCubes::subscription)
+ .run()
}
struct IcedCubes {