Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasmerlin/egui_skia
Render egui with skia!
https://github.com/lucasmerlin/egui_skia
egui rust skia skia-safe
Last synced: 12 days ago
JSON representation
Render egui with skia!
- Host: GitHub
- URL: https://github.com/lucasmerlin/egui_skia
- Owner: lucasmerlin
- License: mit
- Created: 2022-08-10T23:09:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T10:23:24.000Z (9 months ago)
- Last Synced: 2024-10-14T02:46:40.978Z (26 days ago)
- Topics: egui, rust, skia, skia-safe
- Language: Rust
- Homepage:
- Size: 231 KB
- Stars: 55
- Watchers: 4
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egui - egui_skia
README
# Skia backend for egui
This is a drawing backend for [egui](https://github.com/emilk/egui) that uses [skia-safe](https://crates.io/crates/skia-safe).
## Usage
Have a look at the metal or cpu examples to get started.
## Run the examples
```bash
cargo run --example metal --features winit,metal
cargo run --example cpu --features winit,cpu_fix
cargo run --example rasterize --features winit,cpu_fix# Make sure sdl2 is installed
# Follow instructions here: https://github.com/Rust-SDL2/rust-sdl2
cargo run --example sdl2_opengl --features gl
cargo run --example sdl2_vulkan --features vulkan
```## Status
Rendering on the gpu works great, only the dancing strings example doesn't work for some reason.For rendering on the cpu to look correct, the cpu_fix feature needs to be enabled. See https://github.com/lucasmerlin/egui_skia/issues/1 for more information.
## Preview:
https://user-images.githubusercontent.com/8009393/184211263-13d1f2d5-0125-4187-98a6-e95f003e7e75.mov