Commit graph

344 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
94af348846 Rename Rectangle::round to snap
Also use `ceil` instead of `round`.
Closes #380.
2020-06-02 04:38:55 +02:00
Héctor Ramón Jiménez
b96d87ff69 Revert "Merge pull request #371 from myfreeweb/window-alpha"
This reverts commit 2ba9598f80, reversing
changes made to d34f8e06c8.
2020-06-01 22:07:29 +02:00
Héctor Ramón
2ba9598f80
Merge pull request #371 from myfreeweb/window-alpha
Add custom window background/clear color (incl. transparency) support, fixes #272
2020-06-01 22:01:28 +02:00
Greg V
a65d6a11cb Add custom window background/clear color (incl. transparency) support, fixes #272
wgpu would currently ignore the alpha: https://github.com/gfx-rs/wgpu/issues/687

glow (and naively patched wgpu) requires premultiplied alpha, so if you don't
multiply the RGB by the A right now, the semi-transparent color would be wrong
(too bright).

winit with_transparent doesn't seem necessary.
2020-06-01 21:31:19 +03:00
Azriel Hoh
ae9521e500 Feature gate font-kit behind "default_system_font" feature. 2020-05-31 11:00:17 +12:00
Héctor Ramón Jiménez
6d73b94e9a Fix documentation of Backend in iced_wgpu 2020-05-30 03:03:59 +02:00
Héctor Ramón Jiménez
3ef49cd51c Re-export Antialiasing in iced_wgpu 2020-05-29 23:09:15 +02:00
Héctor Ramón Jiménez
0691ec3195 Implement async Compositor::request in iced_wgpu 2020-05-29 23:08:34 +02:00
Héctor Ramón Jiménez
0cde20b355 Merge branch 'master' into improvement/update-wgpu_glyph 2020-05-29 02:00:28 +02:00
Héctor Ramón Jiménez
67b6f044e8 Use published version of wgpu_glyph 2020-05-29 01:55:51 +02:00
Héctor Ramón Jiménez
7f9813d4b3 Revert "Merge pull request #362 from hecrj/fix/target-quad-pixels"
This reverts commit 40501f630d, reversing
changes made to 5324eb1024.
2020-05-28 22:44:52 +02:00
Héctor Ramón
d3db055583
Merge pull request #354 from hecrj/feature/glow-renderer
OpenGL renderer and backend-agnostic graphics subcrate
2020-05-28 21:52:34 +02:00
Héctor Ramón Jiménez
b9d42a45a8 Write documentation for iced_glow 2020-05-28 01:46:17 +02:00
Héctor Ramón Jiménez
2ca7e3c4b0 Write documentation for iced_graphics 2020-05-28 01:40:30 +02:00
Héctor Ramón Jiménez
823ea15732 Update glyph_brush and glow_glyph 2020-05-27 23:09:27 +02:00
Héctor Ramón Jiménez
22ced3485e Introduce feature flags to enable iced_glow
Also keep `iced_wgpu` as the default renderer for the time being.
2020-05-27 05:05:13 +02:00
Héctor Ramón Jiménez
fbe3aa3cf4 Align quads to physical pixels in iced_wgpu 2020-05-27 00:23:42 +02:00
Héctor Ramón Jiménez
f5ee6d0e51 Update wgpu_glyph and glyph_brush 2020-05-25 21:49:16 +02:00
Héctor Ramón Jiménez
2ab7341fa5 Implement State::with_content in pane_grid 2020-05-22 21:56:50 +02:00
Héctor Ramón Jiménez
f3d54a0f33 Expose Node and State::layout for PaneGrid 2020-05-22 21:55:31 +02:00
Héctor Ramón Jiménez
1dd79c4697 Use built-in OpenGL multisampling in iced_glow 2020-05-22 19:15:39 +02:00
Héctor Ramón Jiménez
ae5e2c6c73 Introduce Program and State 2020-05-21 04:27:31 +02:00
Héctor Ramón Jiménez
a1a5fcfd46 Refactor Viewport and Compositor 2020-05-20 20:28:35 +02:00
Héctor Ramón Jiménez
720e7756f2 Move Layer to iced_graphics 2020-05-19 23:19:39 +02:00
Héctor Ramón Jiménez
c2e0c52ce0 Move Antialiasing to iced_graphics 2020-05-19 20:34:17 +02:00
Héctor Ramón Jiménez
f0480854a9 Move built-in fonts to iced_graphics 2020-05-19 20:30:46 +02:00
Héctor Ramón Jiménez
e0c4f1a08e Move font::Source to iced_graphics 2020-05-19 20:20:51 +02:00
Héctor Ramón Jiménez
4aed0fa4b6 Rename window::Backend to Compositor 2020-05-19 20:01:55 +02:00
Héctor Ramón Jiménez
a0ac09122a Move Viewport to iced_graphics 2020-05-19 19:57:42 +02:00
Héctor Ramón Jiménez
750a441a8c Move Transformation to iced_graphics 2020-05-19 19:55:05 +02:00
Héctor Ramón Jiménez
05af8d00d4 Draft new iced_graphics crate 🎉 2020-05-19 17:15:44 +02:00
Héctor Ramón Jiménez
d4743183d4 Draft first working version of iced_glow 🎉 2020-05-19 14:23:28 +02:00
Scott Harper
175f5d71f4 Merge remote-tracking branch 'upstream/master' 2020-05-15 11:38:08 +09:00
Scott Harper
863714602c Updated Radio layout/fns to match Checkbox 2020-05-15 11:27:24 +09:00
DominosCinnaStix
cd6064fd84
set wgpu's adapter backend to PRIMARY 2020-05-14 11:55:26 -04:00
Héctor Ramón Jiménez
4406494ff3 Pin gfx-memory until allocator issue is fixed
https://github.com/gfx-rs/wgpu-rs/issues/261
2020-05-06 00:18:15 +02:00
Lukas Wirth
3a5a07d49d Update iced_wgpu dependencies
font-kit 0.4 -> 0.6
guillotiere 0.4 -> 0.5
image 0.22 -> 0.23
resvg 0.8 -> 0.9
2020-05-05 01:04:40 +02:00
Héctor Ramón Jiménez
08b376c6d7 Implement Frame::fill_rectangle
This method greatly improves performance when drawing axis-aligned rectangles.
2020-05-01 04:34:09 +02:00
Héctor Ramón Jiménez
98bc8cf2a7 Rename MouseCursor to mouse::Interaction 2020-04-30 08:16:38 +02:00
Héctor Ramón Jiménez
d4c4198f72 Write documentation for the new canvas API 2020-04-30 07:38:46 +02:00
Héctor Ramón Jiménez
bb9ccc4f62 Remove inconsistent input module in iced_native 2020-04-30 05:04:45 +02:00
Héctor Ramón Jiménez
38c4dd5fdb Reduce initial size of triangle buffers in iced_wgpu 2020-04-29 23:49:37 +02:00
Héctor Ramón Jiménez
5d12e194f4 Rename Cursor::*_position methods in canvas 2020-04-29 20:58:59 +02:00
Héctor Ramón Jiménez
61c707fe04 Merge branch 'master' into feature/canvas-interaction 2020-04-29 07:34:14 +02:00
Héctor Ramón Jiménez
dc51080328 Introduce Cursor type in canvas 2020-04-29 04:25:49 +02:00
Héctor Ramón Jiménez
52719c7076 Let a canvas::Program control the mouse cursor 2020-04-29 03:16:03 +02:00
Héctor Ramón Jiménez
59403b6ca8 Remove OutOfBounds variant from MouseCursor 2020-04-29 03:11:15 +02:00
Héctor Ramón Jiménez
2539042b71 Remove Drawable and rename State to Program 2020-04-28 06:24:12 +02:00
Héctor Ramón Jiménez
e65585ae17 Clip and cull Mesh2D primitives in iced_wgpu 2020-04-28 04:41:09 +02:00
Héctor Ramón Jiménez
e4eb0553de Allow canvas::State to produce messages 2020-04-28 03:52:12 +02:00