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_sdl_img.h (1401B)
1 /** 2 * @file lv_draw_sdl_img.h 3 * 4 */ 5 6 #ifndef LV_DRAW_SDL_IMG_H 7 #define LV_DRAW_SDL_IMG_H 8 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 /********************* 15 * INCLUDES 16 *********************/ 17 #include "../../lv_conf_internal.h" 18 19 #if LV_USE_GPU_SDL 20 21 #include LV_GPU_SDL_INCLUDE_PATH 22 23 #include "../lv_draw.h" 24 25 #include "lv_draw_sdl_texture_cache.h" 26 27 /********************* 28 * DEFINES 29 *********************/ 30 31 /********************** 32 * TYPEDEFS 33 **********************/ 34 35 typedef 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 *====================*/ 59 bool 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*/