From 5575e6ea0897e406674e7e4239808fbf9daa07c3 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 24 Oct 2022 17:06:02 -0700 Subject: Add image/svg support to `iced_glow` https://github.com/iced-rs/iced/issues/674 Uses image/svg support in `iced_graphics`. The is not currently using an atlas, and uses one texture/draw per image. This should be good enough for now; supporting images with glow is better than not supporting them, and if something else performs better, that improvement can be made without any change to the public API. --- glow/Cargo.toml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 18215e9b..476547d4 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -8,12 +8,23 @@ license = "MIT AND OFL-1.1" repository = "https://github.com/iced-rs/iced" [features] +svg = ["iced_graphics/svg"] +image = ["image_rs", "iced_graphics/image", "png", "jpeg", "jpeg_rayon", "gif", "webp", "bmp"] +image_rs = ["iced_graphics/image_rs"] +png = ["iced_graphics/png"] +jpeg = ["iced_graphics/jpeg"] +jpeg_rayon = ["iced_graphics/jpeg_rayon"] +gif = ["iced_graphics/gif"] +webp = ["iced_graphics/webp"] +pnm = ["iced_graphics/pnm"] +ico = ["iced_graphics/ico"] +bmp = ["iced_graphics/bmp"] +hdr = ["iced_graphics/hdr"] +dds = ["iced_graphics/dds"] +farbfeld = ["iced_graphics/farbfeld"] canvas = ["iced_graphics/canvas"] qr_code = ["iced_graphics/qr_code"] default_system_font = ["iced_graphics/font-source"] -# Not supported yet! -image = [] -svg = [] [dependencies] glow = "0.11.1" @@ -22,6 +33,8 @@ glyph_brush = "0.7" euclid = "0.22" bytemuck = "1.4" log = "0.4" +kamadak-exif = "0.5" +bitflags = "1.2" [dependencies.iced_native] version = "0.5" -- cgit From d3b613df446aaf47b62c7c24422026f8872e9448 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 5 Nov 2022 03:22:06 +0100 Subject: Remove unnecessary dependencies from `iced_glow` --- glow/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 476547d4..31a548c8 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -33,8 +33,6 @@ glyph_brush = "0.7" euclid = "0.22" bytemuck = "1.4" log = "0.4" -kamadak-exif = "0.5" -bitflags = "1.2" [dependencies.iced_native] version = "0.5" -- cgit From 0a23f518c70d27f2e44af38e5d3be2a0ab1a9bc1 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 5 Nov 2022 03:26:19 +0100 Subject: Remove redundant features in `iced_wgpu` and `iced_glow` --- glow/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 31a548c8..a50fd375 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -9,8 +9,7 @@ repository = "https://github.com/iced-rs/iced" [features] svg = ["iced_graphics/svg"] -image = ["image_rs", "iced_graphics/image", "png", "jpeg", "jpeg_rayon", "gif", "webp", "bmp"] -image_rs = ["iced_graphics/image_rs"] +image = ["iced_graphics/image"] png = ["iced_graphics/png"] jpeg = ["iced_graphics/jpeg"] jpeg_rayon = ["iced_graphics/jpeg_rayon"] -- cgit From b0e8bafb6c51666e8b15531001263097ae7d7c0e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 10 Nov 2022 01:20:11 +0100 Subject: Bump versions :tada: --- glow/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index a50fd375..0351b480 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glow" -version = "0.3.0" +version = "0.4.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glow renderer for iced" @@ -34,11 +34,11 @@ bytemuck = "1.4" log = "0.4" [dependencies.iced_native] -version = "0.5" +version = "0.6" path = "../native" [dependencies.iced_graphics] -version = "0.3" +version = "0.4" path = "../graphics" features = ["font-fallback", "font-icons", "opengl"] -- cgit From 23299a555f8b7e908a6a14915307792a7cf97b9a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 10 Nov 2022 18:15:10 +0100 Subject: Bump versions :tada: --- glow/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 0351b480..1977f4b6 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glow" -version = "0.4.0" +version = "0.4.1" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glow renderer for iced" -- cgit From 4c61f12768cdbe728b1dd4a074e36fb6a69534ab Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 7 Dec 2022 04:38:00 +0100 Subject: Bump versions :tada: --- glow/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'glow/Cargo.toml') diff --git a/glow/Cargo.toml b/glow/Cargo.toml index 1977f4b6..f69ce48a 100644 --- a/glow/Cargo.toml +++ b/glow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_glow" -version = "0.4.1" +version = "0.5.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" description = "A glow renderer for iced" @@ -34,11 +34,11 @@ bytemuck = "1.4" log = "0.4" [dependencies.iced_native] -version = "0.6" +version = "0.7" path = "../native" [dependencies.iced_graphics] -version = "0.4" +version = "0.5" path = "../graphics" features = ["font-fallback", "font-icons", "opengl"] -- cgit