On 06/09/12 14:55, Matthias Melcher wrote:
> On 09.06.2012, at 23:22, Greg Ercolano wrote:
>>      I was thinking about writing a few widgets that use Cairo,
>>      but wanted to make sure our cairo support is cross platform,
>>      since the vector shape drawing capabilities in Cairo look so good.
>>      Things like gradient areas and gradient circles..
>>
>>      I'm kinda stuck though if Cairo support doesn't work.
>>      Might have to fall back to making custom gradient code..
> 
> I'd much much rather add those functions (gradients, alpha, antialiasing)
> to the graphics primitives in FLTK itself than rely on another library.

        Agreed.

        Better to pull in the code than to depend on other libs
        that themselves depend on other libs and specific compilers
        that our project doesn't.

        It's an important aspect of fltk that it really does not
        depend on other libs. Apps that build against FLTK don't have to
        go through "dependency hell", as we only require native stuff
        that every platform should have automatically.

        So for that reason, there's something to be said for
        pulling that kind of code into fltk.

        Are there any examples of e.g. gradient filled rects and circs
        in fltk2/3 that can be backported to 1.3.x?

        I think adding such code to 1.3.x should be OK, and the sooner
        the better so that devs can make use of these functions for
        making better looking widgets.. I know it would help me,
        and wouldn't mind doing the footwork if there's existing code..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to