Skip to content

Mesh2D primitive for rendering arbitrary geometry in iced_wgpu#140

Merged
hecrj merged 3 commits into
iced-rs:masterfrom
artursapek:artur/canvas
Jan 3, 2020
Merged

Mesh2D primitive for rendering arbitrary geometry in iced_wgpu#140
hecrj merged 3 commits into
iced-rs:masterfrom
artursapek:artur/canvas

Conversation

@artursapek
Copy link
Copy Markdown
Contributor

@artursapek artursapek commented Jan 2, 2020

image

@artursapek artursapek changed the title WIP: Geometry2D primitive for arbitrary geometry in iced_native Geometry2D primitive for arbitrary geometry in iced_native Jan 2, 2020
@hecrj hecrj added the feature New feature or request label Jan 2, 2020
@hecrj hecrj added this to the 0.1.0 milestone Jan 2, 2020
Copy link
Copy Markdown
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. It lays the foundations to implement a Canvas2D widget (see #32) and simpler widgets, like a color picker. Thank you! 🎉

I have renamed Geometry2D to Mesh2D and moved the types to iced_wgpu, as I think these are very basic GPU primitives and we are only using them in iced_wgpu::Primitive for now. I have also wrapped the Mesh2D in an Arc, so widgets can cache meshes if they need to.

Let me know what you think, and we can merge this!

@hecrj hecrj changed the title Geometry2D primitive for arbitrary geometry in iced_native Mesh2D primitive for rendering arbitrary geometry in iced_wgpu Jan 2, 2020
@artursapek
Copy link
Copy Markdown
Contributor Author

@hecrj those changes seem great to me. Thanks for taking it to the finish line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants