Emil Ernerfeldt
931e716b97
Add egui_wgpu crate ( #1564 )
Based on https://github.com/hasenbanck/egui_wgpu_backend
`egui-wgpu` is now an official backend for `eframe` (opt-in).
Use the `wgpu` feature flag on `eframe` and the `NativeOptions::renderer` settings to pick it.
Co-authored-by: Nils Hasenbanck <nils@hasenbanck.de>
Co-authored-by: Sven Niederberger <niederberger@embotech.com>
Co-authored-by: Sven Niederberger <73159570+s-nie@users.noreply.github.com>
3 years ago
Emil Ernerfeldt
d69ce546fa
Release egui_glow 0.18.1 - remove unnecessary calls to gl.get_error
3 years ago
Emil Ernerfeldt
b30224471c
Release 0.18.1 of egui & epaint - Change `Shape::Callback` to `&mut dyn Any` ( #1552 )
3 years ago
Emil Ernerfeldt
dc26890a80
Release 0.18.0 - Shape::Callback, Table, and better text contrast
3 years ago
Emil Ernerfeldt
f0e6332b42
Fix cargo deny ( #1549 )
* Make the strip demo less ugly
* revert duplicated windows dependency in Cargo.lock
* cargo update
* Remove duplicated windows dependency by reverting rfd
* And again for parking_lot_core
3 years ago
Emil Ernerfeldt
d24599f3cc
Revert tts version to 0.20
3 years ago
Emil Ernerfeldt
ec57683c1a
Update some crates
3 years ago
Emil Ernerfeldt
00471f2887
Update cint 0.2 -> 0.3
3 years ago
Emil Ernerfeldt
ed4fe43e7a
Update tts 0.20 -> 0.21
3 years ago
Emil Ernerfeldt
30aeb2a94f
Update webbrowser 0.6 -> 0.7
3 years ago
Emil Ernerfeldt
3a83a600bb
Add a custom 3D demo using glow to egui_demo_app ( #1546 )
3 years ago
Emil Ernerfeldt
bb421c7e8a
Remove `egui_web` and `epi` ( #1545 )
* Remove integration name (it is always eframe)
* Remove egui_web crate
* Move egui_web/CHANGELOG.md into eframe/CHANGELOG.md
* Remove all mentions of egui_web
* Remove epi crate and absorb into eframe
* egui_glow: only use puffin on native
* Remove WASM doc from CI (we don't generate it anyways!)
* Remove eframe::epi and improve eframe docs
3 years ago
Emil Ernerfeldt
ed002acc68
Refactor: move things into eframe ( #1542 )
* Move all epi-related code from egui_glow into eframe
* Move epi stuff from egui-winit into eframe
* Remove mention of epi in egui
* Remove mention of epi in egui_glium
* Remove trait epi::NativeTexture
* Remove confusing mentions of epi
* Refactor egui_web: break up into smaller files
* Clean up feature flags further, and update changelogs
* Clean up check.sh
* Small cleanup of egui_web/Cargo.toml
* Fix dependencies for pure_glow example
* Fix clippy false positive
3 years ago
Emil Ernerfeldt
355d70d2b9
Move code from `egui_demo_lib` to `egui_demo_app` ( #1540 )
Also clean up feature names and dependencies
3 years ago
tami5
b738418243
New example 'custom_font_style' + improve docs ( #1476 )
3 years ago
Emil Ernerfeldt
2ae93c40ab
Move examples out of `eframe/examples` into `examples/` ( #1486 )
* Move examples out of eframe/examples into examples/
Give each example a `Cargo.toml` and `src/main.rs`.
This makes it easier for people to use as templates.
* Update README.md with more deps needed on vanilla Ubuntu
* Install libgtk-3-dev on CI, hoping that will fix something
3 years ago
Emil Ernerfeldt
170b21b63e
Add opt-in support for the 'puffin' profiler in eframe ( #1483 )
3 years ago
Emil Ernerfeldt
973c3f22d1
Revert "Update tts to 0.21.1" ( #1482 )
This reverts commit de038b9546
.
3 years ago
Emil Ernerfeldt
de038b9546
Update tts to 0.21.1
3 years ago
Emil Ernerfeldt
c88e1f8b29
egui_extras: improve Table/Strip docs, and only panic in debug builds
3 years ago
Emil Ernerfeldt
65d16695ae
Replace copypasta with arboard ( #1475 )
* Replace copypasta with arboard
Closes https://github.com/emilk/egui/issues/1474
* Clean up deny.toml
3 years ago
Emil Ernerfeldt
9b37c82d46
Update three-d to 0.11
3 years ago
René Rössler
1d32670cf3
Dynamic sized strips, tables, and date picker ( #963 )
3 years ago
Emil Ernerfeldt
c63bdeab67
Add an example of showing 3D using three-d ( #1407 )
3 years ago
Emil Ernerfeldt
41b178b6ec
Use atomic_refcell instead of parking_lot for wasm32 targets ( #1404 )
Closes https://github.com/emilk/egui/issues/1401
3 years ago
Emil Ernerfeldt
15254f8235
Remove the single_threaded/multi_threaded feature flags ( #1390 )
Always use parking_lot for mutexes, i.e. always be multi-threaded.
Closes #1379
3 years ago
Emil Ernerfeldt
c768d1d48e
Context::request_repaint will wake up the UI thread ( #1366 )
This adds a callback (set by `Context::set_request_repaint_callback`)
which integration can use to wake up the UI thread.
eframe (egui_web and egui_glow) will use this, replacing
`epi::Frame::request_repaint`.
Existing code calling `epi::Frame::request_repaint` should be changed
to instead call `egui::Context::request_repaint`.
This is the first callback added to the egui API, which otherwise is
completely driven by data.
The purpose of this is to remove the confusion between the two
`request_repaint` methods (by removing one). Furthermore, it makes
`epi::Frame` a lot simpler, allowing future simplifications to it
(perhaps no longer having it be `Send+Sync+Clone`).
3 years ago
Emil Ernerfeldt
6aee4997d4
Add Shape::Callback to do custom rendering inside of an egui UI ( #1351 )
* Add Shape::Callback to do custom rendering inside of an egui UI
* Use Rc<glow::Context> everywhere
* Remove trait WebPainter
* Add glow::Context to epi::App::setup
3 years ago
Emil Ernerfeldt
29c52e8eb6
Remove epi backend from egui_glow ( #1361 )
3 years ago
Emil Ernerfeldt
52b4ab4e18
Remove egui_glium as a backend for eframe ( #1357 )
eframe will now always use egui_glow as a native backend.
Part of https://github.com/emilk/egui/issues/1198
3 years ago
Emil Ernerfeldt
30399bf6ff
Update regex crate v1.5.4 -> v1.5.5
3 years ago
Emil Ernerfeldt
a05520b9d3
Release 0.17.0 - Improved font selection and image handling
3 years ago
Emil Ernerfeldt
c5a9421dbd
Run wasm-bindgen in CI and update parking_lot ( #1293 )
* Run wasm-bindgen in CI
* Update parking_lot 0.11 -> 0.12
3 years ago
Emil Ernerfeldt
ddf914b517
Update crates ( #1283 )
* Update rfd 0.8 -> 0.8
* Update webbrowser 0.5 -> 0.6
* Update unicode_names2 0.4 -> 0.5
* cargo update
Updating crates.io index
Adding arrayvec v0.7.2
Updating async-lock v2.4.0 -> v2.5.0
Updating autocfg v1.0.1 -> v1.1.0
Updating cc v1.0.72 -> v1.0.73
Updating cfg-expr v0.9.1 -> v0.10.1
Updating core-foundation v0.9.2 -> v0.9.3
Updating crc32fast v1.3.1 -> v1.3.2
Updating crossbeam-epoch v0.9.6 -> v0.9.7
Updating crossbeam-utils v0.8.6 -> v0.8.7
Updating deflate v0.9.1 -> v1.0.0
Removing encoding v0.2.33
Removing encoding-index-japanese v1.20141219.5
Removing encoding-index-korean v1.20141219.5
Removing encoding-index-simpchinese v1.20141219.5
Removing encoding-index-singlebyte v1.20141219.5
Removing encoding-index-tradchinese v1.20141219.5
Removing encoding_index_tests v0.1.4
Updating enum-map v2.0.1 -> v2.0.2
Updating futures-core v0.3.19 -> v0.3.21
Updating futures-io v0.3.19 -> v0.3.21
Updating futures-sink v0.3.19 -> v0.3.21
Updating futures-task v0.3.19 -> v0.3.21
Updating futures-util v0.3.19 -> v0.3.21
Updating gio-sys v0.15.4 -> v0.15.6
Updating glib-sys v0.15.4 -> v0.15.6
Updating gobject-sys v0.15.1 -> v0.15.5
Updating image v0.24.0 -> v0.24.1
Updating kurbo v0.8.0 -> v0.8.3
Updating libc v0.2.117 -> v0.2.119
Updating memmap2 v0.5.2 -> v0.5.3
Adding miniz_oxide v0.5.1
Adding ndk-context v0.1.0
Removing ndk-glue v0.5.0
Removing ndk-glue v0.6.0
Adding ndk-glue v0.5.1
Adding ndk-glue v0.6.1
Updating ntapi v0.3.6 -> v0.3.7
Updating png v0.17.2 -> v0.17.3
Updating proc-macro-crate v1.1.0 -> v1.1.2
Updating rand v0.8.4 -> v0.8.5
Removing rand_hc v0.3.1
Updating rustls v0.20.2 -> v0.20.4
Updating semver v1.0.4 -> v1.0.5
Updating serde_json v1.0.78 -> v1.0.79
Updating system-deps v6.0.1 -> v6.0.2
Updating tracing v0.1.30 -> v0.1.31
Updating tracing-subscriber v0.3.7 -> v0.3.9
Updating tts v0.20.2 -> v0.20.3
Removing windows v0.30.0
Removing windows_aarch64_msvc v0.30.0
Removing windows_i686_gnu v0.30.0
Removing windows_i686_msvc v0.30.0
Removing windows_x86_64_gnu v0.30.0
Removing windows_x86_64_msvc v0.30.0
3 years ago
Emil Ernerfeldt
c3fc8997d6
Introduce egui_extras with RetainedImage for loading svg,png,jpeg,… ( #1282 )
3 years ago
Emil Ernerfeldt
b5c8f034e7
Add web location info to egui_web/epi ( #1258 )
This adds all parts of the web "location" (URL) to frame.info().web_info, included a HashMap of the query parameters, percent-decoded and ready to go.
This lets you easily pass key-value pairs to your eframe web app.
3 years ago
Yusuf Bera Ertan
1ebb5ccabf
Don't install console panic hook and tracing wasm subscriber in egui_web ( #1230 )
Do so in egui_demo_app instead
3 years ago
Emil Ernerfeldt
defc400c21
Add an example of how to display an SVG image in egui ( #1228 )
3 years ago
Emil Ernerfeldt
603ec82a5e
cargo deny: clarify MPL-2.0 license and use un-patched ureq again ( #1222 )
See https://github.com/algesten/ureq/issues/478#issuecomment-1031029647
3 years ago
Emil Ernerfeldt
ace2ac00da
Update to tts 0.20.2 which resolves copy-left license issue
See https://github.com/ndarilek/tts-rs/pull/21
3 years ago
Emil Ernerfeldt
712d8c9a2b
Run cargo deny in CI ( #1205 )
* Run cargo deny in CI
* Use patched fork of ureq to avoid copy-left license
* Use patched fork of tts to avoid LGPL license
More:
* https://github.com/ndarilek/tts-rs/pull/21
* https://github.com/algesten/ureq/pull/479
3 years ago
Emil Ernerfeldt
1b623fdd34
Update rfd 0.6 -> 0.7
3 years ago
Emil Ernerfeldt
47038c631e
Update image 0.23 -> 0.24
3 years ago
Emil Ernerfeldt
8dfa6ce2f0
Update tts 0.19 -> 0.20
3 years ago
Emil Ernerfeldt
3999e5b373
cargo update
Updating crates.io index
Removing anyhow v1.0.52
Updating atk-sys v0.14.0 -> v0.15.1
Updating backtrace v0.3.63 -> v0.3.64
Updating cairo-sys-rs v0.14.9 -> v0.15.1
Updating cfg-expr v0.8.1 -> v0.9.1
Updating clang-sys v1.3.0 -> v1.3.1
Updating crc32fast v1.3.0 -> v1.3.1
Updating enum-map v2.0.0 -> v2.0.1
Updating enum-map-derive v0.7.0 -> v0.8.0
Updating gdk-pixbuf-sys v0.14.0 -> v0.15.1
Updating gdk-sys v0.14.0 -> v0.15.1
Updating gio-sys v0.14.0 -> v0.15.4
Updating glib-sys v0.14.0 -> v0.15.4
Updating gobject-sys v0.14.0 -> v0.15.1
Updating gtk-sys v0.14.0 -> v0.15.3
Updating heck v0.3.3 -> v0.4.0
Updating js-sys v0.3.55 -> v0.3.56
Updating libc v0.2.116 -> v0.2.117
Updating lock_api v0.4.5 -> v0.4.6
Updating mint v0.5.8 -> v0.5.9
Updating nix v0.22.0 -> v0.22.3
Adding num_threads v0.1.3
Updating pango-sys v0.14.0 -> v0.15.1
Updating quote v1.0.14 -> v1.0.15
Updating rfd v0.6.3 -> v0.6.4
Updating serde v1.0.133 -> v1.0.136
Updating serde_derive v1.0.133 -> v1.0.136
Updating serde_json v1.0.75 -> v1.0.78
Removing strum v0.21.0
Removing strum_macros v0.21.1
Updating syn v1.0.85 -> v1.0.86
Updating system-deps v3.2.0 -> v6.0.1
Updating time v0.3.5 -> v0.3.7
Updating tracing v0.1.29 -> v0.1.30
Updating tracing-attributes v0.1.18 -> v0.1.19
Updating tracing-core v0.1.21 -> v0.1.22
Removing unicode-segmentation v1.8.0
Adding valuable v0.1.0
Updating version-compare v0.0.11 -> v0.1.0
Updating wasm-bindgen-futures v0.4.28 -> v0.4.29
Updating web-sys v0.3.55 -> v0.3.56
Updating which v4.2.2 -> v4.2.4
Adding windows v0.30.0
Adding windows_aarch64_msvc v0.30.0
Adding windows_i686_gnu v0.30.0
Adding windows_i686_msvc v0.30.0
Adding windows_x86_64_gnu v0.30.0
Adding windows_x86_64_msvc v0.30.0
Updating zbus v2.1.0 -> v2.1.1
Updating zbus_macros v2.1.0 -> v2.1.1
3 years ago
Emil Ernerfeldt
c3be566574
egui-winit: Automatically detect and apply dark or light mode ( #1045 )
3 years ago
Emil Ernerfeldt
c6ac1827f6
Use tracing crate for logging ( #1192 )
* egui_web: use tracing crate
* egui_glow: use tracing crate
* Log at the debug level
* egui_demo_app: enable tracing to log to stdout
* Use tracing in egui-winit
* Add opt-in tracing support to egui
3 years ago
Emil Ernerfeldt
ef81a52951
egui_web: log panics using console.error
3 years ago
Jay Oster
ffa1b6bd43
egui-winit: re-enable window transparency ( #1126 )
`winit` 0.26.1 fixes the crash on Windows 11
3 years ago
Emil Ernerfeldt
b2c8cd0867
Simplify http demo and add new download_image eframe demo
3 years ago