On 11.03.2008, at 22:15, Evan Laforge wrote:

> In line with the recent discussion about "modernising" fltk to do
> things like transparency, what's the current best way to go about
> drawing a translucent rectangle?

What you are doing is currently the only way, unless you go with  
OpenGL. FLTK positions itself very low in graphics interface and does  
not use any system-provided transparency functions (yet).

> Can I call the OS-level drawing functions directly?

Yes, you can do that. Everything you need should be in the docs under  
system-specific calls. Basically, we use fl_gc to hold the graphics  
context in an OS dependent way.

> I'm also interested in anti-aliased lines, curves, and shapes.

If you are on OS X and configure FLTK with --enable-quartz, you  
already have antialiased line drawing.

> Anyone else dealt with these issues in fltk and came up with a nice
> solution?  I'm hoping a cross platform rectf with alpha wouldn't be
> too hard to write, as well as anti-aliased versions of the various
> line drawing primitives.


In a world with alpha channel, there is no big difference between  
drawing a rectangle and drawing an image. It has to be composited in a  
pixl-by-pixel manner anyways. We will look into this eventually, but  
it does not hae priority right now. If you would like to contribute  
(at this point, we would still need an API), you are very welcome.

Matthias


----
http://robowerk.com/


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

Reply via email to