Lines Matching refs:renderer
101 static void frag_render_borders(SDL_Renderer * renderer, SDL_Texture * frag, lv_coord_t frag_size,
104 static void frag_render_center(SDL_Renderer * renderer, SDL_Texture * frag, lv_coord_t frag_size,
188 texture = lv_draw_sdl_mask_dump_texture(ctx->renderer, &coords_frag, &mask_id, 1); in lv_draw_sdl_rect_bg_frag_obtain()
206 … texture = SDL_CreateTexture(ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTUREACCESS_TARGET, in lv_draw_sdl_rect_grad_frag_obtain()
213 SDL_Texture * mask = lv_draw_sdl_mask_dump_texture(ctx->renderer, &coords, &mask_id, 1); in lv_draw_sdl_rect_grad_frag_obtain()
218 SDL_Texture * target_backup = SDL_GetRenderTarget(ctx->renderer); in lv_draw_sdl_rect_grad_frag_obtain()
219 SDL_SetRenderTarget(ctx->renderer, texture); in lv_draw_sdl_rect_grad_frag_obtain()
220 SDL_RenderCopy(ctx->renderer, mask, NULL, NULL); in lv_draw_sdl_rect_grad_frag_obtain()
245 SDL_SetRenderTarget(ctx->renderer, target_backup); in lv_draw_sdl_rect_grad_frag_obtain()
271 texture = SDL_CreateTextureFromSurface(ctx->renderer, surface); in lv_draw_sdl_rect_grad_strip_obtain()
299 SDL_RenderCopy(ctx->renderer, frag, &src_rect, &dst_rect); in lv_draw_sdl_rect_bg_frag_draw_corners()
313 SDL_RenderCopy(ctx->renderer, frag, &src_rect, &dst_rect); in lv_draw_sdl_rect_bg_frag_draw_corners()
317 … SDL_RenderCopyEx(ctx->renderer, frag, &src_rect, &dst_rect, 0, NULL, SDL_FLIP_HORIZONTAL); in lv_draw_sdl_rect_bg_frag_draw_corners()
332 SDL_RenderCopy(ctx->renderer, frag, &src_rect, &dst_rect); in lv_draw_sdl_rect_bg_frag_draw_corners()
336 …SDL_RenderCopyEx(ctx->renderer, frag, &src_rect, &dst_rect, 0, NULL, SDL_FLIP_HORIZONTAL | SDL_FLI… in lv_draw_sdl_rect_bg_frag_draw_corners()
351 SDL_RenderCopy(ctx->renderer, frag, &src_rect, &dst_rect); in lv_draw_sdl_rect_bg_frag_draw_corners()
355 SDL_RenderCopyEx(ctx->renderer, frag, &src_rect, &dst_rect, 0, NULL, SDL_FLIP_VERTICAL); in lv_draw_sdl_rect_bg_frag_draw_corners()
390 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
391 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_BLEND); in draw_bg_color()
392 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_color()
406 frag_render_borders(ctx->renderer, texture, real_radius, coords, draw_area, false); in draw_bg_color()
407 frag_render_center(ctx->renderer, texture, real_radius, coords, draw_area, false); in draw_bg_color()
453 SDL_RenderCopy(ctx->renderer, grad_texture, &srcrect, &dstrect); in draw_bg_grad_simple()
676 texture = lv_sdl_create_opa_texture(ctx->renderer, mask_buf, blur_frag_size, blur_frag_size, in draw_shadow()
694 frag_render_borders(ctx->renderer, texture, blur_frag_size, &shadow_area, clip, false); in draw_shadow()
695 frag_render_center(ctx->renderer, texture, blur_frag_size, &shadow_area, clip, false); in draw_shadow()
774 SDL_Renderer * renderer = ctx->renderer; in draw_border_generic() local
803 texture = lv_draw_sdl_mask_dump_texture(renderer, &frag_area, mask_ids, 2); in draw_border_generic()
824 frag_render_borders(renderer, texture, frag_size, outer_area, clip, true); in draw_border_generic()
832 static void frag_render_borders(SDL_Renderer * renderer, SDL_Texture * frag, lv_coord_t frag_size, in frag_render_borders() argument
848 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
852 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
866 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
871 SDL_RenderCopyEx(renderer, frag, &src_rect, &dst_rect, 0, NULL, SDL_FLIP_VERTICAL); in frag_render_borders()
887 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
891 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
905 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_borders()
910 SDL_RenderCopyEx(renderer, frag, &src_rect, &dst_rect, 0, NULL, SDL_FLIP_HORIZONTAL); in frag_render_borders()
915 static void frag_render_center(SDL_Renderer * renderer, SDL_Texture * frag, lv_coord_t frag_size, in frag_render_center() argument
934 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_center()
938 SDL_RenderCopy(renderer, frag, &src_rect, &dst_rect); in frag_render_center()