mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 23:13:13 -04:00
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do not open PR:s from your `master` branch, as thart makes it difficult for maintainers to add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review you PR, but my time is limited! --> Closes <https://github.com/emilk/egui/issues/THE_RELEVANT_ISSUE>.
27 lines
1.1 KiB
Markdown
27 lines
1.1 KiB
Markdown
# egui_glow
|
|
|
|
[](https://crates.io/crates/egui_glow)
|
|
[](https://docs.rs/egui_glow)
|
|

|
|

|
|
|
|
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).
|
|
|
|
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).
|
|
|
|
To use on Linux, first run:
|
|
|
|
```
|
|
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
|
|
```
|
|
|
|
This crate optionally depends on [`egui-winit`](https://github.com/emilk/egui/tree/master/crates/egui-winit).
|
|
|
|
Test the example with:
|
|
|
|
``` sh
|
|
cargo run -p egui_glow --example pure_glow --features=winit,egui/default_fonts
|
|
```
|