Emil Ernerfeldt
235d77713d
Improve README.md files
2022-07-29 16:07:48 +02:00
Emil Ernerfeldt
6de9d89b65
Add emath::exponential_smooth_factor
2022-07-29 16:07:35 +02:00
Emil Ernerfeldt
4e8a6e3370
misc code cleanup
2022-07-29 16:07:26 +02:00
Emil Ernerfeldt
b0fa0c65cc
fix typo
2022-07-29 15:56:04 +02:00
Emil Ernerfeldt
2612dd1064
Add Visuals::error_fg_color and Visuals::warn_fg_color
2022-07-29 15:32:32 +02:00
Emil Ernerfeldt
8c09804abd
eframe: selectively expose parts of the API based on compile target (#1867 )
...
A lot of the `eframe` API is native-only or web-only. With this PR, only the parts that are implemented for each platform is exposed.
This means you'll need to add `#[cfg(target_arch = "wasm32")]` around code that uses the web-parts of the eframe API, and add `#[cfg(not(target_arch = "wasm32"))]` around the parts that are for native/desktop.
2022-07-29 14:37:23 +02:00
Emil Ernerfeldt
51052c08e9
code cleanup: Pos2::new -> pos2, Vec2::new -> vec2
2022-07-29 14:34:26 +02:00
Emil Ernerfeldt
105cb4b8f2
eframe: add function to set, query and toggle fullscreen mode ( #1866 )
...
Closes https://github.com/emilk/egui/pull/674
Adds `NativeOptions:fullscreen`, `Frame::set_fullscreen` and `WindowInfo::fullscreen`.
2022-07-29 14:21:23 +02:00
Emil Ernerfeldt
278db1c94b
Fix plot auto bounds ( #1865 )
...
* Better estimate the plot bounds for generator functions
Avoid infinities, and sample more densely
* Optimize and improve plot auto-bounds logic
* Fix cropping out of the top/bottom of plots during auto-bounds
2022-07-29 12:32:47 +02:00
Emil Ernerfeldt
97880e18d7
Make egui_demo_app native window size larger by default
2022-07-29 11:14:37 +02:00
Emil Ernerfeldt
09d636b089
egui-wgpu: correctly handle viewport rectangle for callbacks
...
This is important for when a callback shape is inside a ScrollArea.
2022-07-29 00:06:08 +02:00
Emil Ernerfeldt
2278128e66
Add bacon.toml for https://github.com/Canop/bacon
2022-07-26 11:21:57 +02:00
Emil Ernerfeldt
8e2de26e4e
Enable more clippy lints
2022-07-26 11:18:21 +02:00
Emil Ernerfeldt
a7012cf8a6
Use pinned version of wasm-bindgen-cli ( #1855 )
...
* Use pinned version of wasm-bindgen-cli
* Update wasm-bindgen to 0.2.82
* Call setup_web.sh from scripts that depends on it
2022-07-25 23:02:10 +02:00
Emil Ernerfeldt
c02fbfe973
Make it easier to disable tts
...
This is a small step in mitigating https://github.com/emilk/egui/issues/1125
2022-07-25 22:17:52 +02:00
Emil Ernerfeldt
cf591da1a0
Use past tense in all changelogs (for consistency)
2022-07-23 23:55:21 +02:00
Emil Ernerfeldt
8b3d218f4b
Update changelogs with all changes from all PR:s since 0.18 release
2022-07-23 23:54:13 +02:00
Emil Ernerfeldt
d76d055d49
eframe: only enable puffin feature on egui_glow if glow is enabled
2022-07-22 11:09:27 +02:00
Emil Ernerfeldt
41f31116ce
Layout::left_to_right/right_to_left now takes the valign as argument
...
Previous default was `Align::Center`.
Closes https://github.com/emilk/egui/issues/1040
Closes https://github.com/emilk/egui/issues/1836
Closes https://github.com/emilk/egui/pull/1837
2022-07-22 11:02:26 +02:00
Emil Ernerfeldt
9f1f0a9038
Add documentation for Layout
...
Related to https://github.com/emilk/egui/issues/1836
2022-07-22 10:41:14 +02:00
Emil Ernerfeldt
fdc2d1cd6d
epaint tessellator: don't emit empty meshes
...
Closes https://github.com/emilk/egui/issues/1772
2022-07-22 10:25:20 +02:00
Emil Ernerfeldt
77b4bacdf4
Make widget_text module public
...
Closes https://github.com/emilk/egui/issues/1756
2022-07-21 20:52:50 +02:00
Emil Ernerfeldt
0337d78eaa
Fix inpuit requiring ALT key
...
Common on Mac, maybe other platforms too.
Closes https://github.com/emilk/egui/issues/1795
Bug introduced in https://github.com/emilk/egui/pull/1697
2022-07-21 20:25:53 +02:00
Emil Ernerfeldt
bf15bb6e19
Use cargo cranky instead of cargo clippy ( #1820 )
...
* Use cargo cranky instead of cargo clippy
cargo cranky (https://github.com/ericseppanen/cargo-cranky )
is a new tool that passes lints specified in a Cranky.toml
to cargo clippy.
This is a possible solution to
https://github.com/rust-lang/cargo/issues/5034
* Remove `-W clippy::all` from `check.sh` (rely on `Cranky.toml` instead)
2022-07-20 12:34:19 +02:00
Emil Ernerfeldt
898f4804b7
Enable and fix a bunch more lints
2022-07-11 23:08:48 +02:00
Emil Ernerfeldt
c062bca6ee
faster builds: remove tracing-attributes feature from tracing
2022-07-04 00:11:08 +02:00
Emil Ernerfeldt
0f0031ebbb
cargo update ( #1794 )
...
* cargo update
Updating crates.io index
Updating anyhow v1.0.57 -> v1.0.58
Updating arboard v2.1.0 -> v2.1.1
Updating async-broadcast v0.3.4 -> v0.4.0
Updating async-io v1.6.0 -> v1.7.0
Updating async-trait v0.1.53 -> v0.1.56
Updating bindgen v0.59.2 -> v0.60.1
Updating bumpalo v3.9.1 -> v3.10.0
Updating bytemuck v1.9.1 -> v1.10.0
Updating cfg-expr v0.10.2 -> v0.10.3
Updating clang-sys v1.3.1 -> v1.3.3
Adding clap v3.2.8
Adding clap_lex v0.2.4
Updating crossbeam-channel v0.5.4 -> v0.5.5
Updating crossbeam-epoch v0.9.8 -> v0.9.9
Updating crossbeam-utils v0.8.8 -> v0.8.10
Updating dyn-clone v1.0.5 -> v1.0.6
Updating either v1.6.1 -> v1.7.0
Updating enum-map v2.1.0 -> v2.4.0
Updating enum-map-derive v0.8.0 -> v0.9.0
Updating flate2 v1.0.23 -> v1.0.24
Updating getrandom v0.2.6 -> v0.2.7
Updating gif v0.11.3 -> v0.11.4
Adding hashbrown v0.12.1
Updating indexmap v1.8.1 -> v1.9.1
Updating itoa v1.0.1 -> v1.0.2
Updating jpeg-decoder v0.2.4 -> v0.2.6
Updating linked-hash-map v0.5.4 -> v0.5.6
Updating log v0.4.16 -> v0.4.17
Updating memmap2 v0.5.3 -> v0.5.4
Updating miniz_oxide v0.5.1 -> v0.5.3
Updating mio v0.8.2 -> v0.8.4
Removing miow v0.3.7
Adding nix v0.24.1
Removing ntapi v0.3.7
Updating num-rational v0.4.0 -> v0.4.1
Updating num-traits v0.2.14 -> v0.2.15
Updating num_threads v0.1.5 -> v0.1.6
Updating object v0.28.3 -> v0.28.4
Updating once_cell v1.10.0 -> v1.12.0
Adding os_str_bytes v6.1.0
Updating parking_lot v0.12.0 -> v0.12.1
Updating parking_lot_core v0.9.1 -> v0.9.3
Updating proc-macro2 v1.0.37 -> v1.0.40
Updating profiling v1.0.5 -> v1.0.6
Updating puffin v0.13.1 -> v0.13.3
Updating quote v1.0.18 -> v1.0.20
Updating rayon v1.5.2 -> v1.5.3
Updating rayon-core v1.9.2 -> v1.9.3
Updating regex v1.5.5 -> v1.5.6
Updating regex-syntax v0.6.25 -> v0.6.26
Adding remove_dir_all v0.5.3
Updating rfd v0.8.0 -> v0.8.4
Updating rgb v0.8.32 -> v0.8.33
Updating ron v0.7.0 -> v0.7.1
Updating rustls v0.20.4 -> v0.20.6
Updating rustybuzz v0.5.0 -> v0.5.1
Updating ryu v1.0.9 -> v1.0.10
Updating semver v1.0.7 -> v1.0.12
Updating serde v1.0.136 -> v1.0.138
Updating serde_derive v1.0.136 -> v1.0.138
Updating serde_json v1.0.79 -> v1.0.82
Updating serde_repr v0.1.7 -> v0.1.8
Updating smallvec v1.8.0 -> v1.9.0
Adding smithay-client-toolkit v0.16.0
Updating smithay-clipboard v0.6.5 -> v0.6.6
Updating str-buf v1.0.5 -> v1.0.6
Removing strsim v0.8.0
Updating svgtypes v0.8.0 -> v0.8.1
Updating syn v1.0.92 -> v1.0.98
Adding tempfile v3.3.0
Adding textwrap v0.15.0
Updating thiserror v1.0.30 -> v1.0.31
Updating thiserror-impl v1.0.30 -> v1.0.31
Removing time v0.1.43
Removing time v0.3.9
Adding time v0.1.44
Adding time v0.3.11
Updating tiny-skia v0.6.3 -> v0.6.6
Updating tracing v0.1.34 -> v0.1.35
Updating tracing-attributes v0.1.21 -> v0.1.22
Updating tracing-core v0.1.26 -> v0.1.28
Updating tracing-subscriber v0.3.11 -> v0.3.14
Updating ttf-parser v0.15.0 -> v0.15.2
Updating tts v0.20.3 -> v0.20.4
Updating twox-hash v1.6.2 -> v1.6.3
Adding uds_windows v1.0.2
Adding unicode-ident v1.0.1
Updating unicode-normalization v0.1.19 -> v0.1.21
Removing vec_map v0.8.2
Updating wasi v0.10.2+wasi-snapshot-preview1 -> v0.10.0+wasi-snapshot-preview1
Updating wgpu v0.13.0 -> v0.13.1
Updating wgpu-core v0.13.0 -> v0.13.1
Updating wgpu-hal v0.13.0 -> v0.13.1
Removing windows v0.32.0
Adding windows v0.33.0
Adding windows v0.37.0
Updating windows-sys v0.32.0 -> v0.36.1
Removing windows_aarch64_msvc v0.32.0
Adding windows_aarch64_msvc v0.33.0
Adding windows_aarch64_msvc v0.36.1
Adding windows_aarch64_msvc v0.37.0
Removing windows_i686_gnu v0.32.0
Adding windows_i686_gnu v0.33.0
Adding windows_i686_gnu v0.36.1
Adding windows_i686_gnu v0.37.0
Removing windows_i686_msvc v0.32.0
Adding windows_i686_msvc v0.33.0
Adding windows_i686_msvc v0.36.1
Adding windows_i686_msvc v0.37.0
Removing windows_x86_64_gnu v0.32.0
Adding windows_x86_64_gnu v0.33.0
Adding windows_x86_64_gnu v0.36.1
Adding windows_x86_64_gnu v0.37.0
Removing windows_x86_64_msvc v0.32.0
Adding windows_x86_64_msvc v0.33.0
Adding windows_x86_64_msvc v0.36.1
Adding windows_x86_64_msvc v0.37.0
Updating zbus v2.1.1 -> v2.3.2
Updating zbus_macros v2.1.1 -> v2.3.2
Updating zstd v0.10.0+zstd.1.5.2 -> v0.11.2+zstd.1.5.2
Updating zstd-safe v4.1.4+zstd.1.5.2 -> v5.0.2+zstd.1.5.2
Updating zstd-sys v1.6.3+zstd.1.5.2 -> v2.0.1+zstd.1.5.2
Updating zvariant v3.1.2 -> v3.4.1
Updating zvariant_derive v3.1.2 -> v3.4.1
❯ cargo update -p smithay-clipboard --precise 0.6.5
Updating crates.io index
Removing nix v0.24.1
Removing smithay-client-toolkit v0.16.0
Updating smithay-clipboard v0.6.6 -> v0.6.5
* Downgrade enum-map so we can build with rust 1.60
* update syntect
* Update usvg and resvg
* Fix syntect update
* Update tts to 0.22
* Make egui_demo_app compile for wasm with wgpu feature
This broke in https://github.com/emilk/egui/pull/1781
* Ignore rfd tree in deny.toml
* Revert "Update tts to 0.22"
This reverts commit 2e1280b61ef9422c76491ab718ad8da105657097.
* Explain why tts is stuck on an old version
* Downgrade `rfd` to avoid problems with duplicate `windows` crate
2022-07-03 20:12:57 +02:00
Emil Ernerfeldt
bd2cab2f0e
Update three d ( #1793 )
...
* Update three-d to 0.12
* Fix Z fighting in three-d example
Closes https://github.com/emilk/egui/issues/1744
* cargo deny: ignore three-d (only used in examples)
2022-07-03 18:29:12 +02:00
Emil Ernerfeldt
406703568e
Minor clippy fixes (clippy::format_push_string)
2022-07-03 11:58:53 +02:00
Emil Ernerfeldt
eeae485629
Implement repaint_after for eframe web ( #1760 )
...
* Implement repaint_after for eframe web
Follow-up to #1694
* cargo fmt
* Simplify demo UI for "repaint_after"
2022-06-22 14:25:42 +02:00
Emil Ernerfeldt
8c7c4c764b
Don't load fonts in doctests ( #1711 )
...
I was hoping this would speed up the doctests, but it doesn't really
2022-06-10 14:33:16 +02:00
Emil Ernerfeldt
317436c057
Use dark-light on Mac and Windows ( #1726 )
...
* Use dark-light on Mac and Windows
dark-light has a nasty problem on Linux: https://github.com/frewsxcv/rust-dark-light/issues/17
So we made dark-light opt-in in https://github.com/emilk/egui/pull/1437
This PR makes dark-light a default dependency again,
but only use it on Max and Windows.
This is controlled with the new NativeOptions::follow_system_theme.
If this isn't enabled, then NativeOptions::default_theme is used.
* Add eframe::WebOptions
2022-06-09 17:41:59 +02:00
Emil Ernerfeldt
29973e5d02
Make document-features an opt-in dependency
2022-06-09 17:41:37 +02:00
Emil Ernerfeldt
3169ce62d5
Document feature flags using crate document-features ( #1725 )
2022-06-09 15:27:22 +02:00
Emil Ernerfeldt
083e20474b
deny warnings on CI and check.sh with -D warnings ( #1710 )
2022-06-02 21:06:12 +02:00
Emil Ernerfeldt
e6cfa5028e
Add link to chinese translation of egui docs
2022-05-29 21:16:32 +02:00
Emil Ernerfeldt
ac9faaf1c1
epaint_assert that partial texture update is within texture size
2022-05-29 21:00:49 +02:00
Emil Ernerfeldt
42edb92232
Fix compilation of screenshot example (merge race)
2022-05-29 20:59:39 +02:00
Emil Ernerfeldt
20c8ee302c
Allow software rendering OpenGL by default ( #1693 )
...
Follow-up to https://github.com/emilk/egui/pull/1681
2022-05-29 20:37:19 +02:00
Emil Ernerfeldt
2771c8c3e5
Fix doclinks
2022-05-28 18:09:08 +02:00
Emil Ernerfeldt
8173093c67
run cargo check --locked on CI
...
This ensures the Cargo.lock is up-to-date in PR:s
2022-05-28 17:32:59 +02:00
Emil Ernerfeldt
f2dcdfc22c
Fix some broken doc links
2022-05-23 17:25:31 +02:00
Emil Ernerfeldt
fff2008255
Move three-d patch into example Cargo.tom
2022-05-22 18:14:00 +02:00
Emil Ernerfeldt
a29154233b
Add support for texture filters in WGPU backend
2022-05-22 17:40:56 +02:00
Emil Ernerfeldt
cc148ca895
Add texture filters to changelogs and improve docs
2022-05-22 17:32:38 +02:00
Emil Ernerfeldt
f3e305a646
Replace TODO: with TODO(emilk): and update code guidelines
2022-05-21 16:53:25 +02:00
Emil Ernerfeldt
3d5e203d86
egui_glow: clear the post-processing render target ( #1658 )
2022-05-21 16:53:05 +02:00
Emil Ernerfeldt
32ad9c29be
Use better names in glow::Painter
2022-05-21 16:03:26 +02:00
Emil Ernerfeldt
aef8a7901f
Fix broken link
...
Closes https://github.com/emilk/egui/issues/1643
2022-05-21 15:42:43 +02:00
Emil Ernerfeldt
d6fd5dec3b
Add single-threaded deadlock detection to RwMutex ( #1619 )
2022-05-21 14:08:19 +02:00
Emil Ernerfeldt
810b609a80
clippy fixes
2022-05-21 13:04:58 +02:00
Emil Ernerfeldt
934fcd7e99
Add hex_color clipboard fixes to changelogs
2022-05-21 13:04:58 +02:00
Emil Ernerfeldt
f807a290a4
Release egui-wgpu 0.18.0
2022-05-16 16:39:26 +02:00
Emil Ernerfeldt
0389ce68e2
CI: Run cargo check --all-features on Windows and Mac too ( #1631 )
2022-05-15 19:25:24 +02:00
Emil Ernerfeldt
aef5942d0f
Make egui_demo_app the default binary, so cargo run just works
2022-05-12 13:30:35 +02:00
Emil Ernerfeldt
2e4138d050
Add InputState::stable_dt ( #1625 )
...
This provides a better estimate of a typical frametime in reactive mode.
From the docstring of `stable_dt`:
Time since last frame (in seconds), but gracefully handles the first frame after sleeping in reactive mode.
In reactive mode (available in e.g. `eframe`), `egui` only updates when there is new input or something animating.
This can lead to large gaps of time (sleep), leading to large [`Self::unstable_dt`].
If `egui` requested a repaint the previous frame, then `egui` will use
`stable_dt = unstable_dt;`, but if `egui` did not not request a repaint last frame,
then `egui` will assume `unstable_dt` is too large, and will use
`stable_dt = predicted_dt;`.
This means that for the first frame after a sleep,
`stable_dt` will be a prediction of the delta-time until the next frame,
and in all other situations this will be an accurate measurement of time passed
since the previous frame.
Note that a frame can still stall for various reasons, so `stable_dt` can
still be unusually large in some situations.
When animating something, it is recommended that you use something like
`stable_dt.min(0.1)` - this will give you smooth animations when the framerate is good
(even in reactive mode), but will avoid large jumps when framerate is bad,
and will effectively slow down the animation when FPS drops below 10.
2022-05-12 11:23:53 +02:00
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 >
2022-05-12 09:02:28 +02:00
Emil Ernerfeldt
9624de6c41
Fix dead-lock when alt-tabbing while also showing a tooltip ( #1618 )
...
Closes https://github.com/emilk/egui/issues/1609
2022-05-11 20:56:57 +02:00
Emil Ernerfeldt
7b18fab7a4
Optimize tessellation of filled circles ( #1616 )
...
When painting a scatter plot we sometimes want to paint hundreds of thousands of points (filled circles) on screen every frame.
In this PR the font texture atlas is pre-populated with some filled circled of various radii. These are then used when painting (small) filled circled, which means A LOT less triangles and vertices are generated for them.
In a new benchmark we can see a 10x speedup in circle tessellation, but the the real benefit comes in the painting of these circles: since we generate a lot less vertices, the backend painter has less to do.
In a real-life scenario with a lot of things being painted (including around 100k points) I saw tessellation go from 35ms -> 7ms and painting go from 45ms -> 1ms. This means the total frame time went from 80ms to 8ms, or a 10x speedup.
2022-05-10 19:31:19 +02:00
Emil Ernerfeldt
28efc0e1c8
emath: Implement NumExt on all integer types
2022-05-09 12:44:28 +02:00
Emil Ernerfeldt
d69ce546fa
Release egui_glow 0.18.1 - remove unnecessary calls to gl.get_error
2022-05-09 12:43:37 +02:00
Emil Ernerfeldt
e82b87ca73
Remove calls to gl.getError in release builds ( #1583 )
...
This slows down the web version a lot, especially on some browsers
Publish new web demo
2022-05-05 23:17:33 +02:00
Emil Ernerfeldt
32b4781da2
Improve web demo for mobile ( #1556 )
...
`egui_demo_app/lib`: add "About egui" window, and improve mobile layout
This makes the app responsive, removing the side bars on mobile and turning them into drop-down menus instead.
2022-05-02 13:13:35 +02:00
Emil Ernerfeldt
078be52ff8
README.md: Fix broken links to toggle_switch.rs example code
2022-05-01 15:27:12 +02:00
Emil Ernerfeldt
b30224471c
Release 0.18.1 of egui & epaint - Change Shape::Callback to &mut dyn Any ( #1552 )
2022-05-01 11:35:29 +02:00
Emil Ernerfeldt
dc26890a80
Release 0.18.0 - Shape::Callback, Table, and better text contrast
2022-04-30 20:27:27 +02:00
Emil Ernerfeldt
9394e7ea22
Publish new web demo
2022-04-30 20:23:40 +02:00
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
2022-04-30 20:18:59 +02:00
Emil Ernerfeldt
d24599f3cc
Revert tts version to 0.20
2022-04-30 19:23:44 +02:00
Emil Ernerfeldt
45b0a071c8
Clean up changelogs and add contributors section
2022-04-30 19:21:40 +02:00
Emil Ernerfeldt
b41fb585fe
Add doclinks to egui_extras::RetainedImage
2022-04-30 18:36:24 +02:00
Emil Ernerfeldt
ec57683c1a
Update some crates
2022-04-30 18:05:58 +02:00
Emil Ernerfeldt
00471f2887
Update cint 0.2 -> 0.3
2022-04-30 18:01:24 +02:00
Emil Ernerfeldt
ed4fe43e7a
Update tts 0.20 -> 0.21
2022-04-30 17:59:30 +02:00
Emil Ernerfeldt
30aeb2a94f
Update webbrowser 0.6 -> 0.7
2022-04-30 17:58:12 +02:00
Emil Ernerfeldt
11e8ffa079
Reduce Plot::show code bloat by adding Plot::show_dyn
2022-04-30 17:51:07 +02:00
Emil Ernerfeldt
003dc4aac9
egui_demo_app: add link to my twitter
2022-04-30 17:50:39 +02:00
Emil Ernerfeldt
051deb293f
mute warning when building for wasm
2022-04-30 17:47:30 +02:00
Emil Ernerfeldt
51f6cd9c58
Simplify plot demo code
2022-04-30 17:45:39 +02:00
Emil Ernerfeldt
e5ccfedd61
Escape some strings in build_demo_web.sh
2022-04-30 17:18:31 +02:00
Emil Ernerfeldt
462ad5a7f6
egui_demo_app: fall back to dark mode if there is no system preference
2022-04-30 17:18:31 +02:00
Emil Ernerfeldt
3ace620f37
Code cleanup in eframe web backend
2022-04-30 17:18:31 +02:00
Emil Ernerfeldt
9b9c5005d3
CI and check.sh: run cargo doc for all crates
2022-04-30 15:51:46 +02:00
Emil Ernerfeldt
603e5bc5fb
Add Rect::lerp
2022-04-30 15:50:12 +02:00
Emil Ernerfeldt
b137f16472
Make members of Response public, but hide documentation
...
Discourage their direct use, but allow it
2022-04-30 15:49:50 +02:00
Emil Ernerfeldt
c869f67066
Simplify file_dialog example
2022-04-30 15:49:22 +02:00
Emil Ernerfeldt
8a2470b45e
example hello_world: remove frame.set_window_size
...
it doesn't work very well
2022-04-30 15:47:55 +02:00
Emil Ernerfeldt
afd27ca664
Simplify eframe web panic handler code
2022-04-30 15:47:34 +02:00
Emil Ernerfeldt
1983d19614
eframe: fix wrong clear color on native
2022-04-30 15:42:35 +02:00
Emil Ernerfeldt
da2ce58127
egui_demo_app: don't do a transparent native window
...
It doesn't work great on Mac
2022-04-30 15:42:18 +02:00
Emil Ernerfeldt
e1bcaeebe5
App::clear_color: give egui::Visuals as argument
2022-04-30 15:41:43 +02:00
Emil Ernerfeldt and Daniel Buch Hansen
8303523ccf
Precompute rounded vertices ( #1547 )
...
Co-authored-by: Daniel Buch Hansen <boogiewasthere@gmail.com >
2022-04-30 13:14:33 +02:00
Emil Ernerfeldt
3a83a600bb
Add a custom 3D demo using glow to egui_demo_app ( #1546 )
2022-04-30 12:58:29 +02:00
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
2022-04-30 10:44:35 +02:00
Emil Ernerfeldt
18d529203a
Publish new web demo to fix source links following PR #1540
...
https://github.com/emilk/egui/pull/1540
2022-04-29 08:23:56 +02:00
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
2022-04-29 08:17:49 +02:00
Emil Ernerfeldt
881f9b4161
Deprecate `CollapsingHeader::selectable/selected
...
Better to use the more powerful CollapsingState::show_header
2022-04-28 20:06:55 +02:00
Emil Ernerfeldt
355d70d2b9
Move code from egui_demo_lib to egui_demo_app ( #1540 )
...
Also clean up feature names and dependencies
2022-04-28 11:23:34 +02:00
Emil Ernerfeldt
39917bec26
Collapsing header with custom header ( #1538 )
...
* Returns openness in CollapsingResponse
* Make CollapsingState a building block for custom collapsing headers
* Add a demo of the custom collapsing header
* Revert to much simpler tree demo
* Add CollapsingState::is_open and CollapsingState::set_open
2022-04-28 11:09:44 +02:00
Emil Ernerfeldt
8e266760e2
Silence warnings about unused profiling macros in egui-winit
2022-04-27 10:15:32 +02:00