Added drawFilledTriangle()

This commit is contained in:
olliw42
2021-06-02 16:39:46 +02:00
committed by Raphael Coeffic
parent 675773bcfb
commit 32cf4739e1
2 changed files with 53 additions and 1 deletions
+2 -1
View File
@@ -280,6 +280,8 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
void invertRect(coord_t x, coord_t y, coord_t w, coord_t h, LcdFlags flags = 0);
void drawFilledTriangle(coord_t x1, coord_t y1, coord_t x2, coord_t y2, coord_t x3, coord_t y3, LcdFlags flags = 0, uint8_t opacity = 0);
void drawCircle(coord_t x, coord_t y, coord_t radius, LcdFlags flags = 0);
void drawFilledCircle(coord_t x, coord_t y, coord_t radius, LcdFlags flags = 0);
@@ -413,7 +415,6 @@ class BitmapBuffer: public BitmapBufferBase<pixel_t>
return &data[y * _width + x];
}
inline void drawPixelAbs(coord_t x, coord_t y, pixel_t value)
{
pixel_t * p = getPixelPtrAbs(x, y);