Hello!
So, long story short: I spent a lot of time thinking of a way to create GUI applications that could share code between devices. During the research, I ended up finding LittleVGL and someone even made a SDL2 port (albeit a little incomplete on the input side of things).
However, with this alone, I was able to run a LVGL example program on the Playstation Vita just fine with virtually no changes, other than splicing in the VitaSDK toolchain! Since then, I have been quite hyped, to be completely frank.
So, I went and have been looking for existing SDL2 ports, and I was surprised to find quite a few of them. There are some in the DevkitPRO repositories (Switch, Wii U), VitaSDK ships one by default and besides that, the existing SDL2 CMake is simple enough to read through to pick up what platforms are supported. In fact, big compliment on that CMake file; easily the least messy and most readable I have seen in quite a while.
But, out of curiosity: What would I need to do to port SDL2 to other platforms? For instance, take the PS3: It has a proprietary GPU API that the open-source ps3dev toolchain has but otherwise a lot of standard APIs (see github.com/ps3dev/PSL1GHT/blob/master/ppu/include/rsx/rsx.h
, I can only post two links). So, how would I go about porting SDL2 to that - and, making sure that it does not interfere with the mainstream builds too much? Is there a “modular approach” that I can use to develop away without interrupting other ports, let alone the core, by just writing the required absractions/handlers?
So… yeah. I am curious and looking for a port, basically. If it’s not possible, that’s also fine. I was just hoping to not having to write a dozen of various LVGL drivers, but could instead implement a SDL2 port, that could potentially help others as well. Then again, if it was that easy someone would’ve already done it already, I guess… x)
Anyway! Thank you in advance and have a great day!