FLTK logo

[fltk.general] FLTK to SDL Window?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

FLTK to SDL Window? Alex Mayfield Dec 20, 2021  
 
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

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/15a4aa09-f492-413f-bf03-c65e096058e7n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.