On 08/02/16 05:00, 'Brian Tilley' via fltk.general wrote:
> It's certainly possible to draw transparent polygons in opengl.
Yes; and you can do 2D compositing-like stuff that way,
e.g. using glDrawPixels() to draw the map, and then draw polys
over that with transparency.
Another technique would be to use pure non-transparent FLTK drawing
functions, draw the 'filled' area yourself by plotting non-transparent
dots in a halftone pattern, i.e. newsprint-screen-style, to achieve
pseudo-transparency. (see attached image).
This would mean, though, calculating the region of the polygon
to do your own custom 'fill'. Perhaps you can find the FLTK code
that draws the filled polygon, copy it into your code, and replace
the fill algorithm with a halftone pattern one.