floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.04k stars 494 forks source link

Create Sokol port of nanovg #819

Closed samrat closed 1 year ago

samrat commented 1 year ago

I'm trying to use nanovg(with MetalNanoVG) in a project that also uses sokol-gfx(and sokol_gl). This doesn't work well because, if I understand correctly, both libraries create and render a framebuffer. I see a flickering screen.

I think it would be useful to create a Sokol port of nanovg which uses sokol-gfx(or maybe sokol-gl) calls to render nanovg shapes.

Also, I found this old tweet from @floooh : https://mobile.twitter.com/FlohOfWoe/status/505108580329349120 . Seems like something like this was part of Oryol.

darkuranium commented 1 year ago

Pretty sure this is a duplicate of https://github.com/floooh/sokol/issues/633?

samrat commented 1 year ago

Yup, closing this one.