Login / Register  0 items | $0.00 New#KVRDeals

nanovg for plugin uis

hibrasil
KVRian
 
726 posts since 23 Jun, 2002, from Huddersfield, UK

Postby hibrasil; Tue Dec 05, 2017 4:25 pm nanovg for plugin uis

hey,

curious if anyone is using nanvg for their uis? looks like it could be really cool.

oli
User avatar
BertKoor
KVRAF
 
10100 posts since 8 Mar, 2005, from Utrecht, Holland

Postby BertKoor; Wed Dec 06, 2017 12:04 am Re: nanovg for plugin uis

You mean https://github.com/memononen/nanovg ??
Looks very useful indeed...

(but no, I don't)
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is back online!!
stratum
KVRian
 
1360 posts since 29 May, 2012

Postby stratum; Wed Dec 06, 2017 1:38 am Re: nanovg for plugin uis

There is also https://github.com/wjakob/nanogui which happens to use nanovg, but I haven't tried either one
~stratum~
Miles1981
KVRian
 
1272 posts since 26 Apr, 2004, from UK

Postby Miles1981; Wed Dec 06, 2017 1:48 am Re: nanovg for plugin uis

You still need an OpenGL framework around, but from GUIs I've seen from friends in other domains, they look really neat.
PurpleSunray
KVRian
 
711 posts since 13 Mar, 2012

Postby PurpleSunray; Wed Dec 06, 2017 11:15 am Re: nanovg for plugin uis

I use it alot, it's the drawing backend to for all UI on private play-arround never-finished stuff :lol:
Support for different rendering backends makes it really nice. The GLES runs very well on the raspberry pi for instance, no more X11 and stuff needed.. boot your app, create gles context and draw.

For desktop you need some kind of window framework below to create the Open GL context and handle window loop, events & co
On top of it you might want to run some UI engine (like nanoui - nanovg is only about to draw basic shapes)
hibrasil
KVRian
 
726 posts since 23 Jun, 2002, from Huddersfield, UK

Postby hibrasil; Wed Dec 06, 2017 11:26 am Re: nanovg for plugin uis

done that in a plugin? i guess there is some threading stuff to be dealt with
PurpleSunray
KVRian
 
711 posts since 13 Mar, 2012

Postby PurpleSunray; Wed Dec 06, 2017 11:47 am Re: nanovg for plugin uis

It's not multithreading-safe.
Look at it as a vector graphic API -> 3D rendering backend API translator.

I have not tried it, but I think it should prefectly fit into a framework like:
https://juce.com/doc/classOpenGLContext
You get a GL context and a repaint callback, it's all you need.

Moderator: Moderators (Main)

Return to DSP and Plug-in Development