Commit graph

730 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
126133ead7 Fix Clip primitive intersection in iced_wgpu 2020-02-22 18:25:43 +01:00
Héctor Ramón
d6c2b1121c
Merge pull request #198 from hecrj/improvement/example-readmes
Create `README` files for all the examples
2020-02-22 09:12:43 +01:00
Héctor Ramón Jiménez
b0cf47cc2b Create README files for all the examples 2020-02-21 15:20:05 +01:00
Héctor Ramón
9758c12176
Merge pull request #196 from piaoger/patch-1
Fix sample file path for svg example
2020-02-20 10:47:57 +01:00
Piaoger
23fe47bdcb
Fix sample file path for svg example
Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path
2020-02-20 17:28:42 +08:00
Héctor Ramón
17271eae67
Merge pull request #193 from hecrj/feature/canvas
Canvas widget for 2D graphics
2020-02-20 05:51:18 +01:00
Héctor Ramón
8d63c49ba1
Merge pull request #195 from hecrj/fix/macos-quit
Quit application when `Cmd+Q` is pressed on macOS
2020-02-20 05:51:01 +01:00
Héctor Ramón Jiménez
2e457c394f Quit application when Cmd+Q is pressed on macOS 2020-02-19 14:53:08 +01:00
Héctor Ramón Jiménez
6f7247ca13 Rename Settings::use_antialiasing to antialiasing 2020-02-18 09:54:24 +01:00
Héctor Ramón Jiménez
9c067562fa Write documentation for new canvas module 2020-02-18 08:48:54 +01:00
Héctor Ramón
80fc8c286e
Merge pull request #192 from clarkmoody/checkbox-settings
Customize Checkbox
2020-02-18 06:11:55 +01:00
Héctor Ramón Jiménez
6922160423 Pull Checkbox default constants from its Renderer 2020-02-18 02:28:15 +01:00
Clark Moody
668f627532 Add size, spacing, and text_size properties to Checkbox 2020-02-17 17:40:01 -06:00
Héctor Ramón Jiménez
5345ac785b Fix missing enter in iced::executor::Default 2020-02-16 11:40:19 +01:00
Héctor Ramón Jiménez
09cf0b7af3 Enter executor context only on Recipe creation 2020-02-16 11:31:37 +01:00
Héctor Ramón Jiménez
75d8de93ae Wrap application initialization with Runtime::enter 2020-02-16 11:25:10 +01:00
Héctor Ramón Jiménez
570f769744 Rename Settings::antialiasing to use_antialiasing 2020-02-15 10:50:07 +01:00
Héctor Ramón Jiménez
fe61d2fd67 Request high performance adapter if MSAA is enabled 2020-02-15 10:45:45 +01:00
Héctor Ramón Jiménez
dadae12253 Implement MSAA for triangle pipeline in iced_wgpu 2020-02-15 10:08:27 +01:00
Héctor Ramón Jiménez
4969bfdb66 Merge branch 'master' into feature/canvas 2020-02-15 00:50:36 +01:00
Héctor Ramón
cf53026b51
Merge pull request #187 from daxpedda/pub-node-align
Add `Node::move_to` and make `Node::align` public
2020-02-14 23:34:01 +01:00
Héctor Ramón Jiménez
8f83c805b1 Improve documentation for new Node methods 2020-02-14 23:23:45 +01:00
daxpedda
ddceb295f4
Revert rustfmt change. 2020-02-14 21:43:34 +01:00
daxpedda
f4b8bce837
Revert changing the constructor and implement new method. 2020-02-14 21:41:35 +01:00
daxpedda
60b40fdc99
Fix examples. 2020-02-14 18:17:32 +01:00
daxpedda
ebe0d4f47e
Fix custom widget example. 2020-02-14 18:03:59 +01:00
daxpedda
b72bd0b2b5
Add bound to Node constructor. 2020-02-14 15:57:07 +01:00
daxpedda
457d6f616a
Make Node::align public. 2020-02-14 15:36:33 +01:00
Héctor Ramón Jiménez
f5c80a6d75 Upgrade Mesh2D indices from u16 to u32 2020-02-14 05:42:19 +01:00