Commit Graph

11 Commits

Author SHA1 Message Date
Benign X
dbc2ae7dee fix(lv_sdl): remove useless bg_img code (#4990) 2023-12-12 10:02:08 +01:00
Benign X
86a9418cb5 fix(SDL): compile errors (#4893)
Signed-off-by: Benign X <1341398182@qq.com>
2023-11-29 09:01:31 +01:00
Gabor Kiss-Vamosi
2f3e8d4066 feat(draw): add initial SDL renderer
It caches SW rendered bitmaps in textures.
The cache is also updated to support data and source separately.
E.g. source is a path to an image, and if that image changes all
related cache entries needs to found and invalidated.

Limitations of SDL rederer:
- not all draw task types are supported
- image transformation is not supported
- some textures (e.g. button matrix texts) are not detected as cached
- images are not cached
- images are supported only from path
2023-11-18 15:35:45 +01:00
Gabor Kiss-Vamosi
f753265a79 arch(draw): add parallel rendering architecture
BREAKING CHANGE

This is a huge update which introduces parallel rendering. lv_conf.h needs to be updated too.
2023-07-05 13:05:19 +02:00
Kevin Schlosser
3fe1dcd222 docs: fixes API section of the docs to include everything from LVGL. (#4192) 2023-05-01 11:27:28 +02:00
Gabor Kiss-Vamosi
124f9b0f9f arch(driver): new driver architecture with new color format support 2023-02-20 20:50:58 +01:00
Mariotaku
03b04a45b9 fix(SDL): fix typos and other minor issues (#3517)
* fix(sdl): wrong coords for transformed backgrounds

* fix(sdl): fixed typo

* fix(sdl): fixed typo
2022-07-25 21:00:48 +02:00
Gabor Kiss-Vamosi
5369d7d473 arch(conf, api) refactor lv_conf and some API (#3501)
Kconfig and MicroPython config is not updated yet.


* start to refactor lv_conf.h

* further mem refactoring

* create lv_mem_builtin.c/h

* update lv_conf_internal.h

* add lv_strlen and lv_strncpy

* rename LV_DRAW_COMPLEX to LV_USE_DRAW_MASK

* update lv_conf_template

* minor fix
2022-07-19 13:31:42 +02:00
Mariotaku
70c2b57abe fix(canvas): force canvas to use sw draw (#3045)
* force canvas to use sw draw

* added userdata to lv_draw_sdl_drv_param_t

* fixing build test

* Update src/draw/sdl/lv_draw_sdl.h

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2022-01-25 13:24:34 +01:00
Mariotaku
9bbf661dd4 perf(sdl): optimize the use of SDL_RenderSetClipRect (#2941)
* reduce SDL_RenderSetClipRect as much as possible

* added some comments

* removing draw_sw usage

* fixed import

* implemented polygon drawing

* supports subimage for sdl texture based images

* fixed formatting

* removed unused code

* cleanup

* cleanup

* formatted code
2022-01-05 10:01:18 +01:00
Gabor Kiss-Vamosi
db53ea925c arch(draw): allow replacing the draw engine
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00