> Yes but that code is only tested on Linux.
> 
> I am hoping we can compile and use Cairo on Windows and OS/X. 
> It would 
> certainly be nice to have a portable drawing library rather 
> than having 
> fltk provide it.

The speed might be an issue though... 

The existing code for the app currently runs, using fltk-1.1.9 and
Cairo, on Linux/X-windows and win32 systems. It's coded so that the draw
method for the main scene uses either of two back-ends ("plain" fltk or
Cairo). 
The Cairo implementation looks nice but is substantially slower (3~4 FPS
rather than 15~20 FPS.) Doesn't matter too much in this case, but may
matter in a Fast-Light context...
My OSX hack also runs fine, but is upside-down, and the fonts are awry.
So not actually useful, then.

I was hoping Matthias might have a view on this, as I think, from trying
to figure out the fltk-1.1 Quartz code, that some inversion of the
display Y co-ordinate is taking place to align Quartz and fltk systems,
but I don't know enough about either Quartz or Cairo...

> Things like the upside-down window do need to be fixed and I 
> would not 
> be suprised that they are still happening.

My case is in fltk-1.1, I don't know how the fltk-2 case would compare -
porting the body of the app from fltk-1 to fltk-2 doesn't look feasible
at this stage.
 
> One reason I am doing this is so I can work on Cairo itself. I do not 
> think it is quite there yet. The main authors have seriously 
> underestimated the need for a simple font interface, and of drawing 
> pixel-aligned graphics, and a few other problems. I'm hoping 
> that with a 
> clean test platform in fltk I can debug these things and fix Cairo 
> itself. 

This would be very useful, I think!

Cheers,
-- 
Ian



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to