> Andrew Marlow wrote:
>
>  > [... SWIG details snipped ...].
>
> Have you looked at pyFLTK (http://pyfltk.sorceforge.net/)?  It also uses
> SWIG to generate a wrapper for FLTK, except the outermost layer is
> Python.  Perhaps you could leverage their interface specification somehow.

I had a look and unfortunately the answer is no. The ".i" files are strewn with 
all sorts of hacks including lots of stuff that is specific to python. I admire 
the amount of work that has gone into pyFltk but I think it is a shame that the 
pyFltk developers had to do it the way they did. I know they had no choice 
because they are working with the FLTK headers "as is". I think this is why 
there was so much work involved.

I realise now that there is no way there will be a SWIG wrapper for java for 
version 1 of FLTK. There would be too much work to do it the way pyFltk was 
done. But I wonder if SWIG can be borne in mind during the FLTK version 2 work?

> NOTE: My knowledge of SWIG is quite superficial.  It is only sufficient
> to develop a strong distaste for the code it generates :)

Ahem, quite.

-Andrew M

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to