Added Liang-Barsky Line Clipping

This commit is contained in:
Raphael Coeffic
2021-05-22 16:57:04 +02:00
parent e7b6fa412c
commit 67ede465aa
2 changed files with 96 additions and 1 deletions
+2
View File
@@ -426,6 +426,8 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
}
void drawHorizontalLineAbs(coord_t x, coord_t y, coord_t w, uint8_t pat, LcdFlags flags, uint8_t opacity);
bool liangBarskyClipper(coord_t& x1, coord_t& y1, coord_t& x2, coord_t& y2);
};
extern BitmapBuffer * lcd;