mitsuba-renderer / nanogui

Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Other
1.57k stars 196 forks source link

Bringing windows to the front? Plus texture editing #54

Open JonathanCRH opened 4 years ago

JonathanCRH commented 4 years ago

Hello there,

Thank you for providing this excellent library. It's elegant and decidedly non-bloated.

I have an issue: I can't seem to bring a window to the front. You'd think set_focused would do it, but it seems not, even if I set the focus of all the other windows to 0. Am I missing something or is this feature missing?

A couple of requests while I'm here. Is there any chance of adding the ability to edit textures beyond merely loading them in? Just simple get_color and set_color member functions would be extremely useful. I want to use imageview objects to display images created within the program, but as it is, the only way to do it is to store and edit them in some other data structure, then when they're done save them onto the hard drive (in tga format!), and then load them into Nanogui textures. This works but it's ridiculous!

Also, it would be wonderful to have drop-down menus in this library, but I imagine I'm not the first to think that.

Thank you!

JonathanCRH commented 4 years ago

Well, ignore me on the topic of editing textures. I didn't realise how simple the upload() and download() member functions were to use.

It would still be nice to be able to bring windows to the front and do menus, though, unless of course I'm being stupid and not noticing those too!