memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.14k stars 769 forks source link

Instancing with nanovg? #248

Open patniemeyer opened 8 years ago

patniemeyer commented 8 years ago

I have an app that draws a lot of the same thing and I'm wondering what the best approach would be to using instancing with or alongside nanovg. Is there any chance I could capture the geometry it is creating for one of my item and instance it? Thanks.

memononen commented 8 years ago

Currently there's not. Take a look at the other issues and dicussions about display lists. There are some good pointers and forked NanoVGs which have implemented something that you might find useful.

On Thu, Oct 15, 2015 at 1:40 AM, Pat Niemeyer notifications@github.com wrote:

I have an app that draws a lot of the same thing and I'm wondering what the best approach would be to using instancing with or alongside nanovg. Is there any chance I could capture the geometry it is creating for one of my item and instance it? Thanks.

— Reply to this email directly or view it on GitHub https://github.com/memononen/nanovg/issues/248.