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

Support for an embedded_graphics driver / DrawTarget? #781

Open
RaitoBezarius opened this issue Apr 30, 2023 · 0 comments
Open

Support for an embedded_graphics driver / DrawTarget? #781

RaitoBezarius opened this issue Apr 30, 2023 · 0 comments

Comments

@RaitoBezarius
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant