17cupsofcoffee / tetra

🎮 A simple 2D game framework written in Rust
MIT License
909 stars 63 forks source link

Create a submodule for mesh/shape types #234

Closed 17cupsofcoffee closed 3 years ago

17cupsofcoffee commented 3 years ago

Summary:

The graphics module is getting cluttered with niche/advanced features again. We should move mesh/shape drawing tools into a graphics::mesh submodule.

This would raise a slightly tricky question about where VertexWinding should go (since it's used in a top level function in graphics), but this should be resolved by #233.

Why is this needed?

To avoid overwhelming users with too many types/functions. The vast majority of Tetra users will not need to use Mesh, so it doesn't really make sense for it to be front and center in the docs.

17cupsofcoffee commented 3 years ago

Done on the 0.6 branch.