1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00
lvgl/src/lv_draw/lv_draw_triangle.c

65 lines
1.4 KiB
C
Raw Normal View History

/**
* @file lv_draw_triangle.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_triangle.h"
#include "../lv_misc/lv_math.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
2019-03-18 16:16:52 +01:00
/**
*
* @param points pointer to an array with 3 points
* @param mask the triangle will be drawn only in this mask
2019-03-18 16:16:52 +01:00
* @param style style for of the triangle
* @param opa_scale scale down all opacities by the factor (0..255)
*/
2019-06-06 06:05:40 +02:00
void lv_draw_triangle(const lv_point_t * points, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale)
2019-04-17 15:14:09 +02:00
{
2019-04-17 15:14:09 +02:00
}
/**
* Draw a polygon from triangles. Only convex polygons are supported
* @param points an array of points
* @param point_cnt number of points
* @param mask polygon will be drawn only in this mask
* @param style style of the polygon
* @param opa_scale scale down all opacities by the factor (0..255)
*/
void lv_draw_polygon(const lv_point_t * points, uint32_t point_cnt, const lv_area_t * mask, const lv_style_t * style,
2019-06-06 06:05:40 +02:00
lv_opa_t opa_scale)
{
}
2019-04-17 15:14:09 +02:00
/**********************
* STATIC FUNCTIONS
**********************/