Commit graph

760 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
a146e53eb0 Rename new_with_children to with_children 2020-03-17 00:50:23 +01:00
Rowun Giles
ae123d8f14 Instantiate Column and Row with children 2020-03-16 10:08:37 +00:00
Héctor Ramón Jiménez
e1438774af Fix Scrollable width consistency 2020-03-14 23:25:19 +01:00
Héctor Ramón Jiménez
f1168187c9 Update window_clipboard in iced_winit 2020-03-12 07:32:04 +01:00
Héctor Ramón
3f785472c4
Merge pull request #215 from hecrj/improvement/update-winit
Update `winit` to `0.22`
2020-03-11 01:03:16 +01:00
Héctor Ramón Jiménez
aac7ad3e14 Update winit to 0.22 2020-03-09 22:35:25 +01:00
Héctor Ramón
5a91b52ef4
Merge pull request #214 from artursapek/artur/canvas-text
Implement text support in canvas widget
2020-03-09 00:48:51 +01:00
Héctor Ramón Jiménez
b4f970ee73 Implement Default for canvas::Text 2020-03-08 00:06:48 +01:00
Héctor Ramón Jiménez
e9194cbf4a Transform text position in Frame::fill_text
Also add a warning explaining its current limitations.
2020-03-08 00:06:04 +01:00
Héctor Ramón Jiménez
38d967c414 Take a slice in iced_wgpu::triangle pipeline 2020-03-07 23:47:55 +01:00
Héctor Ramón Jiménez
b74e7e7353 Implement Primitive::Cached 2020-03-07 23:45:54 +01:00
Héctor Ramón Jiménez
37f0d97159 Rename Frame::text to Frame::fill_text
This keeps the API similar to the Web Canvas API.
2020-03-07 22:28:57 +01:00
Héctor Ramón Jiménez
f35c9f25f0 Rename canvas::TextNode to canvas::Text 2020-03-07 22:27:02 +01:00
Artur Sapek
1bb8555691 implement text support in canvas widget 2020-03-06 22:01:21 -07:00
Héctor Ramón Jiménez
29219500b7 Update reqwest in pokedex example 2020-03-06 03:58:38 +01:00
Héctor Ramón
d817fe8e14
Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
2020-03-06 03:47:40 +01:00
Héctor Ramón Jiménez
f81827c151 Remove counterintuitive constant functions 2020-03-06 03:30:48 +01:00
Héctor Ramón Jiménez
3062c190bb Fix offsets in triangle pipeline
Yes, again...
2020-03-04 22:32:23 +01:00
Héctor Ramón Jiménez
02091267bf Use new wgpu_glyph release in iced_wgpu 2020-03-03 00:07:30 +01:00
Héctor Ramón
0d4b6addcc
Merge pull request #211 from mrkgnao/master
Add support for loading already-decoded image pixels
2020-03-01 16:31:46 +01:00
Soham Chowdhury
eb7e3250d3 Note BGRA requirement in Handle::from_pixels docs 2020-03-01 06:44:06 +05:30
Soham Chowdhury
1841015428 Add support for loading already-decoded image pixels 2020-02-29 07:32:42 +05:30
Héctor Ramón Jiménez
96f75eae4d Fix offsets of buffer uploads in triangle pipeline 2020-02-28 19:38:17 +01:00
Héctor Ramón
bab7dbcaef
Merge pull request #154 from Maldela/atlas
Texture atlas
2020-02-28 15:17:16 +01:00
Héctor Ramón Jiménez
88d4cd0970 Remove unnecessary pub(crate) use 2020-02-28 14:41:07 +01:00
Héctor Ramón Jiménez
4e7159c22c Stop creating image pipeline when unnecessary 2020-02-28 14:38:42 +01:00
Héctor Ramón Jiménez
fc55e3a3df Move Atlas::deallocate after allocate 2020-02-26 20:50:32 +01:00
Héctor Ramón Jiménez
bb397cc668 Move Debug implementation for vector::Svg 2020-02-26 20:49:40 +01:00
Héctor Ramón Jiménez
271725faa5 Derive Debug for raster::Memory 2020-02-26 20:47:27 +01:00
Héctor Ramón Jiménez
deedf6e8b6 Make new texture module private for now 2020-02-26 20:36:52 +01:00
Héctor Ramón Jiménez
6cb7fb6d52 Remove unused code warnings in iced_wgpu::image 2020-02-26 20:35:39 +01:00
Héctor Ramón Jiménez
883a9f22e2 Add env_logger to svg example 2020-02-26 20:11:01 +01:00
Héctor Ramón Jiménez
d06d06e050 Deallocate atlas entries and remove padding 2020-02-26 20:10:19 +01:00
Héctor Ramón Jiménez
48d70280eb Fix multiple issues from the refactoring
- Update texture view on grow
- Fix atlas texture coordinates
- Fix fragmented uploads
2020-02-26 18:50:13 +01:00
Héctor Ramón Jiménez
c58d94f3fd Avoid creating a vertex buffer every frame 2020-02-26 12:55:04 +01:00
Héctor Ramón Jiménez
59d45a5440 Refactor texture atlas
- Split into multiple modules
- Rename some concepts
- Change API details
2020-02-26 12:34:34 +01:00
Héctor Ramón Jiménez
82f0a49062 Recompile image shaders 2020-02-25 13:27:43 +01:00
Malte Veerman
4617da2818 Implemented automatic deallocation of texture space for dropped allocations 2020-02-25 13:27:03 +01:00
Malte Veerman
8f9f44b9e8 When deallocating the last allocation in an allocator mark its layer as empty 2020-02-25 13:27:03 +01:00
Malte Veerman
2f695ef980 Updated shaders and removed debug_stub_derive dependency 2020-02-25 13:27:03 +01:00
Malte Veerman
c0996923c6 Batch image draw calls into one with multiple instances 2020-02-25 13:26:50 +01:00
Malte Veerman
3f38835105 Implement allocating large images across multiple texture array layers. 2020-02-25 13:26:50 +01:00
Malte Veerman
2f77a6bf5a Use array of atlases instead of one growing indefinitely. 2020-02-25 13:26:50 +01:00
Malte Veerman
8562a4c986 Fixed texture bleeding 2020-02-25 13:26:50 +01:00
Malte Veerman
82e0675c07 Some small debug changes 2020-02-25 13:26:50 +01:00
Malte Veerman
743637ebda Merged image and svg texture atlases into one owned by the image pipeline. 2020-02-25 13:26:50 +01:00
Malte Veerman
1bcfc9a5cc Implemented a texture atlas for images and svgs. 2020-02-25 13:26:33 +01:00
Héctor Ramón
69c81aa50d
Merge pull request #205 from hecrj/feature/wgpu-configurable-format
Make output format of `iced_wgpu` configurable
2020-02-25 11:14:34 +01:00
Héctor Ramón Jiménez
be14aca075 Make output format of iced_wgpu configurable 2020-02-24 20:08:40 +01:00
Héctor Ramón
e680fd27e7
Merge pull request #201 from hecrj/fix/clip-primitive-intersection
Fix `Clip` primitive intersection in `iced_wgpu`
2020-02-23 09:20:21 +01:00