On 1/3/22 6:18 AM, ed.vi...@gmail.com wrote:
Hello
I have developed an FLTK visualization application which uses GL and produces PNGs. I would also like to use it on systems remotely without having to connect to an X11 server. I can use OSmesa to create the OpenGL context but FLTK uses some X11 calls. Would it be possible to compile FLTK without having to link any X11 libraries? I need a window in which to run the OpenGL commands.
FLTK is pretty tied to the window manager's event systems
(mouse, keyboard..).
If your needs are purely openGL and PNG generation, you
probably
should decouple your program from all window manager oriented
graphics
(e.g. FLTK, GLUT, etc) by splitting it into a back end (that
doesn't require FLTK)
and a front end (that does use FLTK) so you can compile your
program in two
different modes, e.g. one for headless rendering, the other
for interactivity
with the user using widgets/events.