2021-10-18 21:13:32 +00:00
|
|
|
# egui_glow
|
|
|
|
|
|
|
|
[](https://crates.io/crates/egui_glow)
|
|
|
|
[](https://docs.rs/egui_glow)
|
|
|
|

|
|
|
|

|
|
|
|
|
2022-04-13 20:05:19 +00:00
|
|
|
This crates provides bindings between [`egui`](https://github.com/emilk/egui) and [glow](https://crates.io/crates/glow) which allows you to:
|
|
|
|
* Render egui using glow on both native and web.
|
|
|
|
* Write cross platform native egui apps (with the `winit` feature).
|
|
|
|
|
2022-08-20 13:18:02 +00:00
|
|
|
To write web apps using `glow` you can use [`eframe`](https://github.com/emilk/egui/tree/master/crates/eframe) (which uses `egui_glow` for rendering).
|
2021-10-18 21:13:32 +00:00
|
|
|
|
|
|
|
To use on Linux, first run:
|
|
|
|
|
|
|
|
```
|
2023-02-08 17:45:44 +00:00
|
|
|
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
|
2021-10-18 21:13:32 +00:00
|
|
|
```
|
|
|
|
|
2022-08-20 13:18:02 +00:00
|
|
|
This crate optionally depends on [`egui-winit`](https://github.com/emilk/egui/tree/master/crates/egui-winit).
|
2023-02-04 12:41:34 +00:00
|
|
|
|
|
|
|
Text the example with:
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
cargo run -p egui_glow --example pure_glow --features=winit,egui/default_fonts
|
|
|
|
```
|