Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_draw/lv_draw_triangle.h
1476 views
1
/**
2
* @file lv_draw_triangle.h
3
*
4
*/
5
6
#ifndef LV_DRAW_TRIANGLE_H
7
#define LV_DRAW_TRIANGLE_H
8
9
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
13
/*********************
14
* INCLUDES
15
*********************/
16
#include "lv_draw.h"
17
18
/*********************
19
* DEFINES
20
*********************/
21
22
/**********************
23
* TYPEDEFS
24
**********************/
25
26
/**********************
27
* GLOBAL PROTOTYPES
28
**********************/
29
/*Experimental use for 3D modeling*/
30
#define USE_LV_TRIANGLE 1
31
32
#if USE_LV_TRIANGLE != 0
33
/**
34
*
35
* @param points pointer to an array with 3 points
36
* @param mask the triangle will be drawn only in this mask
37
* @param color color of the triangle
38
*/
39
void lv_draw_triangle(const lv_point_t * points, const lv_area_t * mask, lv_color_t color);
40
#endif
41
42
/**********************
43
* MACROS
44
**********************/
45
46
47
#ifdef __cplusplus
48
} /* extern "C" */
49
#endif
50
51
#endif /*LV_DRAW_TRIANGLE_H*/
52
53