dalerank / nanogui-sdl

Minimalistic port of NanoGUI claim works with SDL API w/o external dependencies.
Other
437 stars 77 forks source link

Screen overlapping issues #45

Closed siredmar closed 2 years ago

siredmar commented 4 years ago

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:

image

Pressing on screen1 at Button 1 opens screen2.

image

Then pressing on screen2 at Back button closes screen2 and opens back screen1. image

However, the controls on screen1 don't react to anything. This is my problem.

akuskis commented 2 years ago

This issue was fixed.

@dalerank , please help to close this task.