Update lv-tool and examples to use SDL 2
kaixiong opened this issue · 1 comments
kaixiong commented
SDL 2.0 is mature and has been released for close to 10 years now. It is time to port lv-tool
to it.
It is not backwards compatible. Migration guide is available here. The window and graphics API changes are fairly substantial. Reworking lv-tool
's SDL display driver (which maps closely to SDL 1.2's API) will take some effort.
hartwork commented
- I hope the key constansts have not changed from SDL 1 to SDL 2 because we have a copy of SDL 1 values in here
- My mini demo at https://github.com/hartwork/sdl_video_demo was done with this upgrade in mind and could be of interest. It allows seeing SDL 1 and 2 code side by side for the same thing. Rather close to libvisual examples.