acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_draw_triangle.c (1112B)
1 /** 2 * @file lv_draw_triangle.c 3 * 4 */ 5 6 /********************* 7 * INCLUDES 8 *********************/ 9 #include "lv_draw.h" 10 #include "lv_draw_triangle.h" 11 #include "../misc/lv_math.h" 12 #include "../misc/lv_mem.h" 13 14 /********************* 15 * DEFINES 16 *********************/ 17 18 /********************** 19 * TYPEDEFS 20 **********************/ 21 22 /********************** 23 * STATIC PROTOTYPES 24 **********************/ 25 26 /********************** 27 * STATIC VARIABLES 28 **********************/ 29 30 /********************** 31 * MACROS 32 **********************/ 33 34 /********************** 35 * GLOBAL FUNCTIONS 36 **********************/ 37 38 void lv_draw_polygon(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[], 39 uint16_t point_cnt) 40 { 41 draw_ctx->draw_polygon(draw_ctx, draw_dsc, points, point_cnt); 42 } 43 44 void lv_draw_triangle(struct _lv_draw_ctx_t * draw_ctx, const lv_draw_rect_dsc_t * draw_dsc, const lv_point_t points[]) 45 { 46 47 draw_ctx->draw_polygon(draw_ctx, draw_dsc, points, 3); 48 } 49 50 /********************** 51 * STATIC FUNCTIONS 52 **********************/