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

Backend-specific primitives #1932

Merged
merged 4 commits into from
Jun 29, 2023
Merged

Backend-specific primitives #1932

merged 4 commits into from
Jun 29, 2023

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Jun 26, 2023

This PR introduces a new Custom generic type and variant to Primitive in iced_graphics.

Graphical backends can now define their custom primitive type. As a result, we can properly decouple the tiny-skia dependency from iced_graphics.

This should also lay the foundations for choosing a completely custom, unofficial renderer at runtime.

@hecrj hecrj added feature New feature or request rendering labels Jun 26, 2023
@hecrj hecrj added this to the 0.10.0 milestone Jun 26, 2023
graphics/src/lib.rs Outdated Show resolved Hide resolved
@hecrj hecrj force-pushed the generic-graphics-primitive branch from c415a46 to 2128472 Compare June 29, 2023 05:18
@hecrj
Copy link
Member Author

hecrj commented Jun 29, 2023

Alright! I have decoupled the Mesh primitives in fa5650c and wrote the missing docs in 6921564.

I think this is ready to sail! 🚢

@hecrj hecrj enabled auto-merge June 29, 2023 06:00
@hecrj hecrj merged commit c6b5831 into master Jun 29, 2023
@hecrj hecrj deleted the generic-graphics-primitive branch June 29, 2023 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants