mikroSDK Reference Manual
lv_draw_sdl_img.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_SDL_IMG_H
7#define LV_DRAW_SDL_IMG_H
8
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/*********************
15 * INCLUDES
16 *********************/
18
19#if LV_USE_GPU_SDL
20
21#include LV_GPU_SDL_INCLUDE_PATH
22
23#include "../lv_draw.h"
24
26
27/*********************
28 * DEFINES
29 *********************/
30
31/**********************
32 * TYPEDEFS
33 **********************/
34
35typedef struct lv_draw_sdl_img_header_t {
36 lv_img_header_t base;
37 SDL_Rect rect;
38} lv_draw_sdl_img_header_t;
39
40/**********************
41 * GLOBAL PROTOTYPES
42 **********************/
43
44/*======================
45 * Add/remove functions
46 *=====================*/
47
48/*=====================
49 * Setter functions
50 *====================*/
51
52/*=====================
53 * Getter functions
54 *====================*/
55
56/*=====================
57 * Other functions
58 *====================*/
59bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, size_t key_size,
60 const void * src, int32_t frame_id, SDL_Texture ** texture,
61 lv_draw_sdl_img_header_t ** header);
62/**********************
63 * MACROS
64 **********************/
65
66#endif /*LV_USE_GPU_SDL*/
67
68#ifdef __cplusplus
69} /*extern "C"*/
70#endif
71
72#endif /*LV_DRAW_SDL_IMG_H*/
Definition lv_img_buf.h:126