Add agg_renderer_base::fill(color&) method for blending a color. Complements the clear(color&) method, which copies the color.

Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
John Horigan
2017-03-08 14:59:40 -05:00
committed by Augustin Cavalier
parent cb743deb19
commit 3c69a2e24d
+13 -1
View File
@@ -132,7 +132,19 @@ namespace agg
}
}
}
//--------------------------------------------------------------------
void fill(const color_type& c)
{
unsigned y;
if(width())
{
for(y = 0; y < height(); y++)
{
m_ren->blend_hline(0, y, width(), c, cover_mask);
}
}
}
//--------------------------------------------------------------------
void copy_pixel(int x, int y, const color_type& c)