Jorvik, Part 6. This week I focused on abstractin...
# two-minute-week
c
Jorvik, Part 6. This week I focused on abstracting my graph renderer to make it graphics API independent, drawing it into an offscreen surface, and incorporating it into an ImGui window with pan and scale options.
😎 1
🍰 4
i
Anything behind the name Jorvik?
c
yay! nanovg! cool!
c
@Ivan Reese It refers to where I live, in York. I have no idea if this is the final name - haven't decided. It is pronounced with a 'Y' https://en.wikipedia.org/wiki/Scandinavian_York
@CocoaGeek I like nanovg a lot, but I'm only using it instead of ImGui because it has the gradient fills I use, which I think helps lift the UI off the screen a little. Now I'm abstracted, it won't be hard to try other approaches.
The downside is it only supports GL and D3D9 (a backend I contributed a long time ago). ImGui might be more sensible long term.
c
I haven't looked at imGui for a couple of years so it may have improved since. But I selected nanovg because it was plain C and the implementation was a lot cleaner than imGui
c
ImGui is pretty amazing these days; especially with the new Docking stuff. But it wasn't long ago I looked, and there was no gradient fill.
Hence the hybrid approach....