Will SDL3 support allow FLTK to use Wayland in some way. To me that's
the biggest and only feature I am looking for 1.5+.
ggar...@gmail.com schrieb am Donnerstag, 27. Februar 2025 um 07:07:30 UTC+1:
Will SDL3 support allow FLTK to use Wayland in some way. To me that's
the biggest and only feature I am looking for 1.5+.
Gonzalo Garramuño ggar...@gmail.com
FLTK 1.5 will get an external SDL3 driver that can replace the internal native drivers.
Matthias: what would be an external driver? Would that be different from an additionalset of platform-specific FLTK driver classes (Fl_SDL_Window_Driver, Fl_SDL_Screen_Driver,Fl_SDL_Graphics_Driver, Fl_SDL_Image_Surface_Driver, Fl_SDL_Gl_Window_Driver,Fl_SDL_System_Driver) like the Wayland set which was added to FLTK 1.4?
The null driver wouldn't be for your code to benefit from, as far as I
understand it. It would be something comparable to an empty (abstract)
base class all other drivers can be derived from, where the abstract
class defines the interface for other classes. Its intention would be to
improve - or enable in the first place - driver maintainability of the
FLTK library. Once the null driver exists, its interface can be used to
build other drivers on it.
Matthias, is this how you plan to design it? Can you elaborate if I'm wrong?
Albrecht-S schrieb am Donnerstag, 3. April 2025 um 00:33:48 UTC+2:
The null driver wouldn't be for your code to benefit from, as far as I
understand it. It would be something comparable to an empty (abstract)
base class all other drivers can be derived from, where the abstract
class defines the interface for other classes. Its intention would be to
improve - or enable in the first place - driver maintainability of the
FLTK library. Once the null driver exists, its interface can be used to
build other drivers on it.
Matthias, is this how you plan to design it? Can you elaborate if I'm wrong?
Yes, that is correct.
I am still in the trying-out phase. CMake is so capable, but also so complex that I keep maneuvering myself into dead ends.
Gonzalo, I am hopeful that your PR will actually help me to find the dividing line between core, driver, and external driver.
Again, this is not meant to cause (much) additional work for you, but to keep the core safe if or when a developer can no longer maintain a driver, and no other developer can take over ;-)
The null driver is really just a base that would allow FLTK to compile with no driver code linked in at all. It's just another name for a driver base class that is self sufficient. Your Vk driver is probably building on that already anyway.