Skip to content

Support for an embedded_graphics driver / DrawTarget? #781

@RaitoBezarius

Description

@RaitoBezarius

Hi there (again me), I am writing some graphics stuff with the library and I realize it would be nice to leverage existing libraries (embedded_graphics, tinybmp, etc.) to do graphics.

For this, I guess having an optional embedded_graphics DrawTarget optimized implementation would be interesting, see https://github.com/DianaNites/uefi-graphics/blob/main/src/lib.rs for an example.

The only problem I see is that pixel format is at runtime for UEFI and DrawTarget seems to use a "static" pixel format.

It's not clear to me if this is a fundamental issue or if it's side-steppable by creating a new PixelColor format which would be the enum of everything and contains possibly the PixelBitmask if needed to do custom formats.

What do you think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions