On 11.08.2008, at 15:18, Yuri D'Elia wrote: > Peter Gunn wrote: > >> I was trying to create a small program that would have no onscreen >> GUI but >> that would utilize Fl_Offscreen but it immediately cored. The >> following is >> enough to create a core: > > offscreen buffers still use the backend connection to perform the > actual > operation.
See answer below. > >> After a little investigation it appears that the add_timeout >> example from >> the docs doesnt work either: > > You are right. Can you post a bug report? On WIN32 at least, the timers depend on an invisible window, hence won't work on a faceless system (if that exists at all under MS Windows). I am not sure anout the X11 implementation, but since everything comes back to the event handler, we may have another dependency on an X11 client connection here. > >> I assume that fltk needs to have established a connection to the GUI >> before things work correctly. Not a biggie for me but it would be >> nice to >> use Fl_Offscreen to draw things without X (or Xvfb fudging). > > Drawing is performed by the server itself (using X calls). > Maybe with fltk 1.3, or already with fltk 2, something can be done > through > better internal backend code. Yes, I proposed a graphics driver implementation for 1.4. It would allow regular FLTK widgets inside OpenGL windows and much more, including the two cases mentioned. (1.3 was supposed to be limited to an API cleanup, UTF8, and two new widgets). Matthias ---- http://robowerk.com/ _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
