I want to create an application that sits directly on a SDL2 window. Currently i don't want to make this windows thing within the SDL2 window. Basically what i need is to place widgets directly on the screen.
This works pretty good, however i have a problem switching nanogui screen contexts.
The minimalistic example above shows basically what i wish to do.
This is screen1 in action:
Pressing on screen1 at Button 1 opens screen2.
Then pressing on screen2 at Back button closes screen2 and opens back screen1.
However, the controls on screen1 don't react to anything.
This is my problem.
Please see this gist i've prepared fore a minimalistic code example that shows the bahaviour: https://gist.github.com/siredmar/bbdc71084cd7b33e0d14a9bf51244e2e
I want to create an application that sits directly on a SDL2 window. Currently i don't want to make this
windows thing
within the SDL2 window. Basically what i need is to place widgets directly on the screen. This works pretty good, however i have a problem switching nanogui screen contexts.The minimalistic example above shows basically what i wish to do.
This is screen1 in action:
Pressing on screen1 at
Button 1
opens screen2.Then pressing on screen2 at
Back
button closes screen2 and opens back screen1.However, the controls on screen1 don't react to anything. This is my problem.