Crates.io | egui_skia |
lib.rs | egui_skia |
version | 0.4.0 |
source | src |
created_at | 2022-08-22 21:58:42.837053 |
updated_at | 2023-10-12 20:09:29.515398 |
description | egui_skia is a skia integration for the egui ui library. Render egui within a skia application or render skia in a egui application. |
homepage | https://github.com/lucasmerlin/egui_skia |
repository | https://github.com/lucasmerlin/egui_skia |
max_upload_size | |
id | 650620 |
size | 96,782 |
This is a drawing backend for egui that uses skia-safe.
Have a look at the metal or cpu examples to get started.
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
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.
https://user-images.githubusercontent.com/8009393/184211263-13d1f2d5-0125-4187-98a6-e95f003e7e75.mov