On Wed, Aug 19, 2009 at 08:07:06PM +0200, Johannes Hofmann wrote:
Hello,
On Tue, Aug 18, 2009 at 11:02:01AM -0700, Chris Nicholas wrote:
Just learning about dillo; looks neat!
We are investigating how best to "embed" html links within a 3D world, in much the same way old-time 'anchor nodes' were embedded in VRML. We were just thinking to have a separate tab, or if we got fancy, play with OpenGL transforms, etc.
Unfortunately, one of the libraries we use for avatars (www.edgelib.com) *must* have the main loop, with everything else called during onRedraw(), etc. Is it even conceivable to use dillo in this manner?
I think you would need a process or a thread dedicated to dillo, as it loads html pages in the background. If you only want to render html that is already available you might get away with just calling some dillo code within the onRedraw() method. But you would need to dive into the dillo code for that.
Another technique that may fit is to call FLTK's main loop periodically using fltk::check() or fltk::wait(). http://www.fltk.net/doc/ref13/classFl.html#1dbb83f1d52001c152ccf8415e3ee6f0 -- Cheers Jorge.-