-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support interpolation for 2D rendering modes (#102)
Changed to 2D rendering API to support render modes which use linear interpolation to process full / empty regions. - Specifically, `RenderMode::interval` now returns an `IntervalAction`, which can be `Fill(..)`, `Recurse`, or `Interpolate` - Modify `SdfRenderMode` use this interpolation; the previous pixel-perfect behavior is renamed to `SdfPixelRenderModel` - Make `RenderMode` trait methods static, because they weren't using `&self` - Change signature of `fidget::render::render2d` to pass the mode only as a generic parameter, instead of an argument
- Loading branch information
Showing
9 changed files
with
143 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.