1 /** 2 * @file lv_draw_sdl_refr.h 3 * 4 */ 5 6 #ifndef LV_TEMPL_H 7 #define LV_TEMPL_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include "lv_draw_sdl.h" 17 18 /********************* 19 * DEFINES 20 *********************/ 21 22 /********************** 23 * TYPEDEFS 24 **********************/ 25 typedef struct _lv_draw_sdl_layer_ctx_t { 26 lv_draw_layer_ctx_t base; 27 28 SDL_Texture * orig_target; 29 SDL_Texture * target; 30 SDL_Rect target_rect; 31 bool target_in_cache; 32 lv_draw_layer_flags_t flags; 33 } lv_draw_sdl_layer_ctx_t; 34 /********************** 35 * GLOBAL PROTOTYPES 36 **********************/ 37 38 lv_draw_layer_ctx_t * lv_draw_sdl_layer_init(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx, 39 lv_draw_layer_flags_t flags); 40 41 void lv_draw_sdl_layer_blend(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * transform_ctx, 42 const lv_draw_img_dsc_t * draw_dsc); 43 44 void lv_draw_sdl_layer_destroy(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx); 45 46 void lv_draw_sdl_transform_areas_offset(lv_draw_sdl_ctx_t * ctx, bool has_composite, lv_area_t * apply_area, 47 lv_area_t * coords, lv_area_t * clip); 48 /********************** 49 * MACROS 50 **********************/ 51 52 #ifdef __cplusplus 53 } /*extern "C"*/ 54 #endif 55 56 #endif /*LV_TEMPL_H*/ 57