Lines Matching refs:sdl_ctx

49 static SDL_Texture * line_texture_create(lv_draw_sdl_ctx_t * sdl_ctx, const lv_draw_line_dsc_t * ds…
58 lv_draw_sdl_ctx_t * sdl_ctx = (lv_draw_sdl_ctx_t *) draw_ctx; in lv_draw_sdl_draw_line() local
59 SDL_Renderer * renderer = sdl_ctx->renderer; in lv_draw_sdl_draw_line()
68 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(sdl_ctx, &key, sizeof(key), NULL); in lv_draw_sdl_draw_line()
70 texture = line_texture_create(sdl_ctx, dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line()
71 *in_cache = lv_draw_sdl_texture_cache_put(sdl_ctx, &key, sizeof(key), texture); in lv_draw_sdl_draw_line()
83 …lv_draw_sdl_composite_begin(sdl_ctx, &coords, clip, &extension, dsc->blend_mode, &t_coords, &t_cli… in lv_draw_sdl_draw_line()
103 lv_draw_sdl_composite_end(sdl_ctx, &apply_area, dsc->blend_mode); in lv_draw_sdl_draw_line()
121 static SDL_Texture * line_texture_create(lv_draw_sdl_ctx_t * sdl_ctx, const lv_draw_line_dsc_t * ds… in line_texture_create() argument
123 …SDL_Texture * texture = SDL_CreateTexture(sdl_ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTU… in line_texture_create()
125 SDL_Texture * target = SDL_GetRenderTarget(sdl_ctx->renderer); in line_texture_create()
126 SDL_SetRenderTarget(sdl_ctx->renderer, texture); in line_texture_create()
128 SDL_SetRenderDrawColor(sdl_ctx->renderer, 0xFF, 0xFF, 0xFF, 0x0); in line_texture_create()
130 SDL_SetRenderDrawBlendMode(sdl_ctx->renderer, SDL_BLENDMODE_NONE); in line_texture_create()
131 SDL_RenderFillRect(sdl_ctx->renderer, NULL); in line_texture_create()
132 SDL_SetRenderDrawBlendMode(sdl_ctx->renderer, SDL_BLENDMODE_BLEND); in line_texture_create()
133 SDL_SetRenderDrawColor(sdl_ctx->renderer, 0xFF, 0xFF, 0xFF, 0xFF); in line_texture_create()
135 SDL_RenderFillRect(sdl_ctx->renderer, &line_rect); in line_texture_create()
142 …SDL_Texture * round_texture = lv_draw_sdl_mask_dump_texture(sdl_ctx->renderer, &round_area, &mask_… in line_texture_create()
147 SDL_RenderCopy(sdl_ctx->renderer, round_texture, &round_src, &round_dst); in line_texture_create()
149 SDL_RenderCopy(sdl_ctx->renderer, round_texture, &round_src, &round_dst); in line_texture_create()
153 SDL_SetRenderTarget(sdl_ctx->renderer, target); in line_texture_create()