> I think that trying to use fltk's native drawing methods for a
> high-resolution / high-fidelity painting program is probably not useful.
>
> The fltk drawing primitives are really intended to be used for drawing
> the GUI and to be Fast and Light (it's in the name).
>
> 64-bit double-precision colour rendering is not generally necessary for
> rendering basic GUI widgets...
>
> What I would do is use fltk for the GUI elements, but build the actual
> rendering surface "canvas" using a dedicated rendering library, probably
> Cairo, but either OpenGL or AGG might work too.
> Using OpenGL for the drawing surface probably brings speed benefits too
> since it is likely to be hardware accelerated whereas Cairo or AGG may
> not be (though you can probably use some sort of GL/glitz type backend
> with Cairo of course.)

> > All of this makes me wonder if I should make my own drawing functions
> > that draw directly on an image.
>
> Yes.
> I suggest you start off with Cairo or OpenGL and if they are not
> powerful enough for your needs, then you have to write your own.
> Either option works well with fltk.
>
> I doubt we will ever implement higher fidelity drawing primitives. They
> are generally not necessary for GUI purposes, and tend to be neither
> Fast nor Light.
>
> For fancier drawing, anti-aliasing, etc., I tend to favour Cairo now,
> and have used it a fair bit with fltk.

Thanks imm for responding.I must admit, that was my original guess too, that 
since such high level drawing is hardly ever needed it would be bloating FLTK 
if you would have implemented.Congratulations to you guys for such great 
anti-bloat mentality and for keeping FLTK small and fast as it's supossed to be!
And yes, of course I will use FLTK for the GUI part(widgets only).I just wanted 
to know if it would have been a waste of my time to implement those drawing 
functions on my own or where you guys planning to implement them directly in 
FLTK.But now I know.
You say that I shouldn't implement them on my own, but neither use FLTK's own, 
instead I should use Cairo or AGG or even OpenGL.Now I don't know about OpenGL 
since it's vector graphics though I know it has some raster capabilities too, 
but my editor is a raster editor just like Krita or Gimp.I will look into those 
libraries.
Thank you again for clarifying things so now I now what I have to do.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to