Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glow image rendering support; move image/svg code to iced_graphics #1485

Merged
merged 8 commits into from
Nov 5, 2022

Commits on Nov 5, 2022

  1. Move image/svg handling into iced_graphics

    The `TextureStore` trait is implemented by the atlas, and can also be
    implemented in the glow renderer or in a software renderer.
    
    The API here may be improved in the future, but API stability is
    presumably not a huge issue since these types will only be used by
    renderer backends.
    ids1024 authored and hecrj committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    2c7c42e View commit details
    Browse the repository at this point in the history
  2. Add image/svg support to iced_glow

    iced-rs#674
    
    Uses image/svg support in `iced_graphics`. The is not currently using an
    atlas, and uses one texture/draw per image. This should be good enough
    for now; supporting images with glow is better than not supporting them,
    and if something else performs better, that improvement can be made
    without any change to the public API.
    ids1024 authored and hecrj committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    5575e6e View commit details
    Browse the repository at this point in the history
  3. Refactor some image traits a bit

    - Use `Size<u32>` were applicable.
    - Rename `TextureStore` to `image::Storage`.
    - Rename `TextureStoreEntry` to `image::storage::Entry`.
    - Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
    hecrj committed Nov 5, 2022
    Configuration menu
    Copy the full SHA
    8ce8d37 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    438f97a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d3b613d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a23f51 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7a24b4b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    078cadf View commit details
    Browse the repository at this point in the history