Home
last modified time | relevance | path

Searched refs:renderer (Results 1 – 20 of 20) sorted by relevance

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_layer.c49 SDL_Renderer * renderer = ctx->renderer; in lv_draw_sdl_layer_init() local
54 transform_ctx->orig_target = SDL_GetRenderTarget(renderer); in lv_draw_sdl_layer_init()
72 SDL_SetRenderTarget(renderer, transform_ctx->target); in lv_draw_sdl_layer_init()
75 SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_NONE); in lv_draw_sdl_layer_init()
76 SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0); in lv_draw_sdl_layer_init()
77 SDL_RenderFillRect(renderer, NULL); in lv_draw_sdl_layer_init()
78 SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND); in lv_draw_sdl_layer_init()
94 SDL_Renderer * renderer = ctx->renderer; in lv_draw_sdl_layer_blend() local
105 SDL_SetRenderTarget(renderer, transform_ctx->orig_target); in lv_draw_sdl_layer_blend()
111 SDL_RenderSetClipRect(renderer, &clip_rect); in lv_draw_sdl_layer_blend()
[all …]
Dlv_draw_sdl_line.c59 SDL_Renderer * renderer = sdl_ctx->renderer; in lv_draw_sdl_draw_line() local
98 SDL_RenderSetClipRect(renderer, &clip_rect); in lv_draw_sdl_draw_line()
100 SDL_RenderCopyEx(renderer, texture, &srcrect, &dstrect, angle, &center, 0); in lv_draw_sdl_draw_line()
101 SDL_RenderSetClipRect(renderer, NULL); in lv_draw_sdl_draw_line()
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()
[all …]
Dlv_draw_sdl_bg.c82 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_NONE); in draw_bg_color()
83 SDL_SetRenderDrawColor(ctx->renderer, bg_color.r, bg_color.g, bg_color.b, dsc->bg_opa); in draw_bg_color()
87 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_color()
89 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_BLEND); in draw_bg_color()
95 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_NONE); in draw_bg_img()
96 SDL_SetRenderDrawColor(ctx->renderer, 0, 0, 0, 0); in draw_bg_img()
100 SDL_RenderFillRect(ctx->renderer, &rect); in draw_bg_img()
102 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_BLEND); in draw_bg_img()
Dlv_draw_sdl_img.c61 static SDL_Texture * upload_img_texture(SDL_Renderer * renderer, lv_img_decoder_dsc_t * dsc);
63 static SDL_Texture * upload_img_texture_fallback(SDL_Renderer * renderer, lv_img_decoder_dsc_t * ds…
219 *texture = upload_img_texture(ctx->renderer, dsc); in lv_draw_sdl_img_load_texture()
244 static SDL_Texture * upload_img_texture(SDL_Renderer * renderer, lv_img_decoder_dsc_t * dsc) in upload_img_texture() argument
247 return upload_img_texture_fallback(renderer, dsc); in upload_img_texture()
263 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, surface); in upload_img_texture()
268 static SDL_Texture * upload_img_texture_fallback(SDL_Renderer * renderer, lv_img_decoder_dsc_t * ds… in upload_img_texture_fallback() argument
283 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, surface); in upload_img_texture_fallback()
321 SDL_RenderSetClipRect(ctx->renderer, &clip_rect); in draw_img_simple()
325 …SDL_RenderCopyEx(ctx->renderer, texture, &src_rect, &dst_rect, draw_dsc->angle, &pivot, SDL_FLIP_N… in draw_img_simple()
[all …]
Dlv_draw_sdl.h45 SDL_Renderer * renderer; member
51 SDL_Renderer * renderer; member
67 SDL_Texture * lv_draw_sdl_create_screen_texture(SDL_Renderer * renderer, lv_coord_t hor, lv_coord_t…
Dlv_draw_sdl_rect.c101 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()
[all …]
Dlv_draw_sdl_composite.c96 internals->target_backup = SDL_GetRenderTarget(ctx->renderer); in lv_draw_sdl_composite_begin()
97 SDL_SetRenderTarget(ctx->renderer, internals->composition); in lv_draw_sdl_composite_begin()
98 SDL_SetRenderDrawColor(ctx->renderer, 255, 255, 255, 0); in lv_draw_sdl_composite_begin()
100 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_NONE); in lv_draw_sdl_composite_begin()
101 SDL_RenderFillRect(ctx->renderer, NULL); in lv_draw_sdl_composite_begin()
102 SDL_SetRenderDrawBlendMode(ctx->renderer, SDL_BLENDMODE_BLEND); in lv_draw_sdl_composite_begin()
139 SDL_RenderCopy(ctx->renderer, internals->mask, &src_rect, &src_rect); in lv_draw_sdl_composite_end()
148 SDL_SetRenderTarget(ctx->renderer, internals->target_backup); in lv_draw_sdl_composite_end()
178 SDL_RenderCopy(ctx->renderer, internals->composition, &src_rect, &dst_rect); in lv_draw_sdl_composite_end()
204 result = SDL_CreateTexture(ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, access, size, size); in lv_draw_sdl_composite_texture_obtain()
Dlv_draw_sdl.c77 draw_ctx_sdl->renderer = ((lv_draw_sdl_drv_param_t *) disp_drv->user_data)->renderer; in lv_draw_sdl_init_ctx()
91 SDL_Texture * lv_draw_sdl_create_screen_texture(SDL_Renderer * renderer, lv_coord_t hor, lv_coord_t… in lv_draw_sdl_create_screen_texture() argument
93 …SDL_Texture * texture = SDL_CreateTexture(renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTUREACCESS_… in lv_draw_sdl_create_screen_texture()
Dlv_draw_sdl_label.c114 SDL_Renderer * renderer = ctx->renderer; in lv_draw_sdl_draw_letter() local
128 texture = SDL_CreateTextureFromSurface(renderer, mask); in lv_draw_sdl_draw_letter()
163 SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_mask.c68 SDL_Texture * lv_draw_sdl_mask_dump_texture(SDL_Renderer * renderer, const lv_area_t * coords, cons… in lv_draw_sdl_mask_dump_texture() argument
75 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, surface); in lv_draw_sdl_mask_dump_texture()
Dlv_draw_sdl_mask.h39 SDL_Texture * lv_draw_sdl_mask_dump_texture(SDL_Renderer * renderer, const lv_area_t * coords, cons…
Dlv_draw_sdl_utils.h51 SDL_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t widt…
Dlv_draw_sdl_utils.c130 SDL_Texture * lv_sdl_create_opa_texture(SDL_Renderer * renderer, lv_opa_t * pixels, lv_coord_t widt… in lv_sdl_create_opa_texture() argument
134 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, indexed); in lv_sdl_create_opa_texture()
Dlv_draw_sdl_polygon.c95 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_polygon()
Dlv_draw_sdl_arc.c138 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_arc()
/lvgl-3.7.0/docs/porting/
Dgpu.md2 … hook it to do some rendering with a GPU or even completely replace the built-in software renderer.
46 ## Software renderer
47 LVGL's built in software renderer extends the basic `lv_draw_ctx_t` structure and sets the draw cal…
66 …u saw above the software renderer adds the `blend` callback field. It's a special callback related…
80 ## Extend the software renderer
145     /*Fallback: the GPU doesn't support these settings. Call the SW renderer.*/
158     /*Call SW renderer's wait callback too*/
196 …U supports a powerful vector graphics engine you might use only that instead of LVGL's SW renderer.
197 In this case, you need to base the renderer on the basic `lv_draw_ctx_t` (instead of `lv_draw_sw_ct…
/lvgl-3.7.0/docs/overview/renderers/
Dsdl.md1 # SDL renderer
Dsw.md1 # Software renderer
/lvgl-3.7.0/
DKconfig271 bool "Use SDL renderer API"
/lvgl-3.7.0/docs/
DCHANGELOG.md663 - arch(draw): separate SW renderer to allow replacing it [`2803`](https://github.com/littlevgl/lvgl…
915 - Much faster circle drawing in the software renderer