mikroSDK Reference Manual
lv_draw_sdl_composite.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_SDL_COMPOSITE_H
7#define LV_DRAW_SDL_COMPOSITE_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16
18
19#include LV_GPU_SDL_INCLUDE_PATH
20
21#include "lv_draw_sdl.h"
22#include "../../misc/lv_area.h"
23#include "../../misc/lv_color.h"
24
25/*********************
26 * DEFINES
27 *********************/
28
29/**********************
30 * TYPEDEFS
31 **********************/
32
33typedef enum lv_draw_sdl_composite_texture_id_t {
34 LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM0,
35 LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_STREAM1,
36 LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_TARGET0,
37 LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_TARGET1,
38 LV_DRAW_SDL_COMPOSITE_TEXTURE_ID_TRANSFORM0,
39} lv_draw_sdl_composite_texture_id_t;
40
41/**********************
42 * GLOBAL PROTOTYPES
43 **********************/
44
56bool lv_draw_sdl_composite_begin(lv_draw_sdl_ctx_t * ctx, const lv_area_t * coords_in, const lv_area_t * clip_in,
57 const lv_area_t * extension, lv_blend_mode_t blend_mode, lv_area_t * coords_out,
58 lv_area_t * clip_out, lv_area_t * apply_area);
59
60void lv_draw_sdl_composite_end(lv_draw_sdl_ctx_t * ctx, const lv_area_t * apply_area, lv_blend_mode_t blend_mode);
61
62SDL_Texture * lv_draw_sdl_composite_texture_obtain(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_composite_texture_id_t id,
63 lv_coord_t w, lv_coord_t h);
64
65/**********************
66 * MACROS
67 **********************/
68
69#ifdef __cplusplus
70} /*extern "C"*/
71#endif
72
73#endif /*LV_DRAW_SDL_COMPOSITE_H*/
bool lv_draw_sdl_composite_begin(lv_draw_sdl_ctx_t *ctx, const lv_area_t *coords_in, const lv_area_t *clip_in, const lv_area_t *extension, lv_blend_mode_t blend_mode, lv_area_t *coords_out, lv_area_t *clip_out, lv_area_t *apply_area)
Definition lv_area.h:43