I am using FLTK to create a GUI and I have to draw onto the screen some polygons (shapes).
From their documentation of fl_complex_polygon:
Start and end drawing a convex filled polygon.
The problem? The polygon is not filled, but only the stroke is displayed. How can I make the polygon a filled shape?
My code looks like this:
fl_color(FL_RED);
fl_begin_complex_polygon();
fl_line(mX,mY, x, y);
....
fl_line(mX,mY, x, y);
fl_end_complex_polygon();
Other related question: How can I redraw a FL_BOX
? Do I have to draw a blank (background-colored) rectangle over it, or is there some FL_BOX::clear()
function?