Open define-private-public opened 7 years ago
Got sample code?
(EDIT, I meant to write "NanoVG," instead of "OpenVG," in the OP)
Not really - I never did any higher level wrapper around NanoVG but I have bindings here - https://github.com/zacharycarter/nanovg.nim
Using it pretty much means using the NanoVG API at the moment.
We could introduce a thin wrapper around NanoVG if you'd be game for that.
Taking about some future ideas here (also maybe something to do before v1.0). Any plans on 2D drawing other than rendering sprites & textures?
Having functions to do 2D drawing isn't really necessary for a game dev library, but it can be really handy. I see that there is some stuff in
primitives.nim
, but not much.I very much would like to do option no. 4, since it would be a lot less work for us (among other things). But options 1-3 look a little more fun, and possibly better since we would have more control, understanding, and portability if we had something in pure Nim rather than binding an existing C library.
What are your thoughts? This isn't an immediate thing to work on, but a nice little cherry on the top.