So i've been using FLTK to create the boot window of a game of mine, and I have to say that I've been incredibly impressed by it this far. However, an offhand comment by someone else on the team got me thinking - what would be the lift involved in getting FLTK to work directly with SDL itself? As in, reading in keyboard and mouse inputs from SDL, and then rendering windows inside of an SDL texture to blit to the screen, similar to Dear Imgui, nuklear, or Agar. It would be really neat if FLTK to be both out-of-game and in-game UI at the same time.
I imagine that one would have to write a simple window manger for SDL, but assuming that could be done, I wonder what demands FLTK puts on a backend in order to be a viable porting target? Does FLTK do enough of its own rendering to where a bitmap of a window could just be flushed into a texture and rendered? Or is it more complicated than that?
To be clear, this isn't really a feature request, as I imagine it would be a pain in the neck to implement regardless. I'm more curious about the viability - if it's a "Oh if someone put the work in it'd be possible" or if it's more "FLTK is not set up in a way that makes that possible."
Regards,
-Alex