public override void AddCell(int x, int cover)
{
m_covers[m_cover_index] = (byte)cover;
if (x == last_x + 1 && m_spans[last_span_index].len > 0)
{
//append to last cell
m_spans[last_span_index].len++;
}
else
{
//start new
last_span_index++;
m_spans[last_span_index] = new ScanlineSpan((short)x, m_cover_index);
}
last_x = x;
m_cover_index++; //make it ready for next add
}
public override void AddSpan(int x, int len, int cover)