Exophase said:
SDL just doesn't officially have the facilities for scaling (or other linear transformations) at all. If it did then it could. Some SDL implementations for devices with fixed resolutions (like all handhelds) will apply a hardware scale to screen surfaces that don't match the resolution, though.
Someone tell me if this has changed recently, I wouldn't know.
There's the SDL_GFX library that supports rotation and scaling of surfaces but it's software, I don't think it can be used with a GPU without extensive modification and you might as well write something else anyway by that point..... but the way I see it, these are the critical pieces of functionality that should be accelerated via the GPU from SDL as they'd encompass the vast majority of SDL apps past present and future:
1. Making hardware surfaces in vram
2. Blitting from surface to screen (supported on GP2X, makes some improvement but not a whole lot)
3. Blitting from surface to surface in vram (I'd call this the most important)
4. Filling rects with a color
5. Alpha transparency
Things that would be extremely helpful if accelerated:
1. Image decompression and conversion to display format (like uncompressed 16bit, 24bit or 32bit pixmaps depending on the screen color depth, which I don't think has been revealed yet.... just resolution)
2. Rotation and scaling of surfaces, ideally using blending or filtering to antialias the result
The way I see it, it's extremely important all major 2D acceleration tasks be supported right away with the new handheld from SDL, requiring the use of openGL will put more burden on developers and people wanting to port existing software that doesn't already use it. A community member like Paeryn shouldn't have to donate lib later, it should just be supported from day 1 with the SDK.... what shipped with the gp2x was a bit on the mediocre side IMHO; any aspiring developer for the system should have all they need to get started from the minute they open the box.
It would also be a big deal to me if USB networking like the gp2x f100 had was implemented; it's a damn shame gph took it out in f200 because it was honestly the best idea they ever had. Running telnet on my PC and running apps on the handheld from a commandline was invaluable whenever I wanted to test some small change and not have to swap my SD card in and out of my PC, reset the device, etc.