EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

Use Shapes to make images from SVG #733

Open Noofbiz opened 4 years ago

Noofbiz commented 4 years ago

An SVG is actually just a collection of shapes, and we have methods to create all the shapes needed to fully implement the SVG 2.0 spec. So, rather than saving an SVG to an image.Image and then uploading it as a texture (which is how SVG support works at the moment), we can draw the SVG via shapes.