1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Add egui_glow as an opt-in backend to eframe (#817)

* Make egui_glow and opt-in backend for eframe

* Add egui_glow to Cargo.toml and to CI

* Reference egui_glow where egui_glium is mentioned

* Remove path-patches from root Cargo.toml

* Add instructions on how to enable the glow backend of eframe
This commit is contained in:
Emil Ernerfeldt
2021-10-19 15:32:23 +02:00
committed by GitHub
parent cf273e3519
commit cdd4dccf5f
14 changed files with 80 additions and 22 deletions

View File

@@ -28,7 +28,8 @@ epi = { version = "0.14.0", path = "../epi" }
# For compiling natively:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
egui_glium = { version = "0.14.0", path = "../egui_glium", default-features = false, features = ["clipboard", "links"] }
egui_glium = { version = "0.14.0", path = "../egui_glium", default-features = false, features = ["clipboard", "links"], optional = true }
egui_glow = { version = "0.14.0", path = "../egui_glow", default-features = false, features = ["clipboard", "links"], optional = true }
# For compiling to web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
@@ -39,7 +40,7 @@ image = { version = "0.23", default-features = false, features = ["png"] }
rfd = "0.5.0"
[features]
default = ["default_fonts"]
default = ["default_fonts", "egui_glium"]
# If set, egui will use `include_bytes!` to bundle some fonts.
# If you plan on specifying your own fonts you may disable this feature.