Re-try to use a UI library
The main issue we had, with immediate gui notably (nuklear, imgui), was with the opengl state, never reset to a working state when drawing UI.
Now, we have a new example, try this way (https://github.com/thebracket/rltk/blob/master/rltk/rltk.cpp#L144) :
main_window->pushGLStates(); main_window->resetGLStates(); optional_display_hook(); main_window->popGLStates();
Where main_window
is a sfml's sf::RenderWindow
.