While working on my little game, I’ve iterated through different ways of displaying game state:
- Command line
- Web page
- 2D canvas
- 3D canvas
In each port, I preserve some elements and change others out. One of the elements I want to keep from the 2D version in the 3D version is rounded rectangles.
Initially, I used NanoVG to render the 2D elements into 3D. This works, but NanoVG is a lot of code. It’s very general. I don’t need that level of generality. I just want rounded rectangles. So how do we do that?