Hi Greg,

> MCO wrote:
> > http://dtedm.blogspot.com/2009/03/fltk-agg-lite.html
>
>       Neat: do I read this right that it enables low level
>       anti aliased drawing in FLTK? If so, sounds good.

That's it, yes.

>       Are there any screenshots showing it in action?

I just added a screenshot and a small windows program that shows it runs quite 
fast ( just click and drag the mouse around the window). It shows both AA and 
transparency.

>       I don't know much about this subject, but I think FLTK
>       also supports Cairo -- how do the two differ?
>       I'm guessing agg is lighter weight than Cairo, making it
>       potentially a better fit?

Yes. I used the 'The Lighweight Rasterizer' version of the Anti Grain Geometry 
library in my program. It is indeed very light in terms of code, much lighter 
than Cairo for sure. The API is lighter too, eg there's no font drawing code in 
there, in my FLTK project I had to use the FLTK font drawing system that offers 
neither AA nor transparency.
I'd draw with Agg Lite in a buffer, blit it, and then draw on top of that with 
normal FLTK drawing functions.

>
>       Wasn't sure what the hex codes were for in the render()
>       call in the example on that page, eg. render(0xAF, 0xAF, 0xAF, 20);

-> first three for RGB value and last one for transparency.

Manuel


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

Reply via email to