1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Make egui_glow painter to work on web (#868)

Add WebGL1 and WebGL2 support to glow painter.
Add "glow" feature to egui_web to use the glow painter there.
Make winit an optional part of egui_glow
This commit is contained in:
triangle drawer
2021-11-04 03:17:07 +09:00
committed by GitHub
parent 1dbe608e73
commit 804722a1ba
21 changed files with 1093 additions and 318 deletions

View File

@@ -28,6 +28,7 @@ crate-type = ["cdylib", "rlib"]
egui = { version = "0.15.0", path = "../egui", default-features = false, features = [
"single_threaded",
] }
egui_glow = { version = "0.15.0",path = "../egui_glow", default-features = false, optional = true }
epi = { version = "0.15.0", path = "../epi" }
js-sys = "0.3"
ron = { version = "0.7", optional = true }
@@ -44,6 +45,7 @@ default = ["default_fonts"]
default_fonts = ["egui/default_fonts"]
persistence = ["egui/persistence", "ron", "serde"]
screen_reader = ["tts"] # experimental
glow =["egui_glow","egui_glow/epi"]
[dependencies.web-sys]
version = "0.3.52"